serendipityguy
3rd October 2005, 14:05
sorry to ask, but i did look around and could not find any answers, so here is my question...

Scite will not compile
>g++ -pedantic -Os -fno-exceptions -c hello.cpp -o hello.o
>The system cannot find the file specified.

found this in the help file, and still with out a clue :confused:


When I try to compile/build/run my [some language] source files,
I get the following error: 'The system cannot find the file specified'.

Make sure that the path to your compiler is set correctly on your system.
Try to execute from console the same command you get in SciTE and see
if it works. You can also search in your [language].properties for the
compile commands used. If you have a different compiler or use different
arguments, edit the commands to suit your needs. The lines to look for:
command.compile.filepattern=
command.build.filepattern=
command.go.filepattern=

I am looking in the cpp.properties at here :eek:


cc=g++ -pedantic -Os -fno-exceptions -c $(FileNameExt) -o $(FileName).o

make.command=make
command.compile.*.cpp=$(cc)
command.build.*.cpp=$(make.command)
command.go.*.cpp=$(FileName)
# To make the Go command both compile (if needed) and execute, use this setting:
#command.go.needs.*.c=g++ $(FileNameExt) -o $(FileName)


and I am stuck, can some one please tell me where to look or what to do?

mark_h
3rd October 2005, 16:01
Have you checked on the scite (http://www.scintilla.org/SciTEDoc.html) website? I will not be any help on compiling a C program - I just downloaded the executables for Scite.

serendipityguy
3rd October 2005, 16:09
but this is the document where I got my point of refference from

here F.A.Q's (http://www.scintilla.org/SciTEFAQ.html#CannotFindFile)

and still cant compile, the borland 5.5 works tested on a helloworld.cpp and from a dos prompt got it work, but when I am trying to compile from with in SciTe, this is when I am getting the error message

>g++ -pedantic -Os -fno-exceptions -c hello.cpp -o hello.o
>The system cannot find the file specified.

mark_h
3rd October 2005, 18:35
Moved to this forum since this is not really related to Baan tools. Not sure how you found a Baan site while looking for the site editor. But we do our best. You may need to be patient and wait for a member with more C experience.

Have you validated that the compiler is in the path? What about the directory to where the source code is - is that in the path? What happens if you put the source into the same directory as the helloworld.cpp? To me it seems that either the g++(Is that the command that gets typed to compile?) or the hello.cpp file can not be found.

Just some wild guesses.

serendipityguy
4th October 2005, 01:09
Just a screen shot there are no image tags here at this forum,

http://www.yippykia.com/assets/compile.gif

mark_h
4th October 2005, 15:33
Sorry this is out of my league. Maybe someone else on Baanboard has used the C compiler options for scite and can respond to your problem.

dave_23
4th October 2005, 19:19
Can you compile a regular hello world?

hello.cpp:
<stdio.h>
main(){
printf("hello world\n");
}

> g++ hello.cpp

?

Dave

serendipityguy
4th October 2005, 21:37
hay guys I got the fix, took the laptop to my Professor Shin, he's a mentor....

and explained to him my situation, and he was eeager to look at the machine and fix the problem.

he spotted the cpp.properties files and found that the code....

cc=g++ -pedantic -Os -fno-exceptions -c $(FileNameExt) -o $(FileName).o

neede4d to be changed to

cc=bcc32 $(FileName)

and then the puppy was set and fixed. thanks for all of the members that did offer to contribute to this problem..