CDT on Windows 98 - can not build hello.cpp with make [message #44856] |
Thu, 10 October 2002 18:56  |
Eclipse User |
|
|
|
Originally posted by: roman.levandovsky.guest-tek.com
Hello,
It is very starnge, when I try to build the hello.cpp file it shows as if it is building but in the end I get no hello.o file and no hello.exe file.
It looks as if make is not trying to compile my hello.cpp file.
I tried it both ways, first I did not have a make and gcc compiler on the system.
I tried compiling the hello.cpp code and make did not generate any errors but did not build the file either.
Then I installed cygwin and tried again, same results.
Then I installed MinGW and still same results, make does not build and does not generate any errors.
At this point I figured I must have an old version of CDT so I went and got the newest version of CDT but still I am having the same problems.
Does anyone know why this is happening and how can I circumvent this behaviour!
Thanks,
Roman Levandovsky.
|
|
|
|
Re: CDT on Windows 98 - can not build hello.cpp with make [message #44926 is a reply to message #44856] |
Thu, 10 October 2002 21:20   |
Eclipse User |
|
|
|
Roman,
I'm guessing the CDT isn't finding your Cygwin tools. I'm not sure what the
preferred solution is, but under Windows 2000, I did the following (outside of
Eclipse):
Start >
Settings >
Control Panel >
System > Advanced >
Environment Variables... >
New...
At which point I then entered the following:
Variable Name: Path
Variable Value: %Path%;C:\cygwin
After selecting "OK" a few times, I restarted Eclipse and it managed to respond
with more than a blank stare at the C-Build "make -k" command.
It's also possible you need a Makefile. For really quick tests I usually create
an overly-simplified "makefile" like the following (note: the "rm" is preceded
by a tab character):
all:hello
clean:
rm -f hello.exe
The target is "hello", so you should probably have "hello.c" or "hello.cpp" in
the same directory, waiting to be compiled. Make's default rules should figure
out the rest.
I still haven't figured out what the "Make Targets" view is used for, since it
doesn't appear to pass those names to Make at any point in time, but maybe
someone more knowledgeable can speak to that.
Brian
Roman Levandovsky wrote:
> Hello,
>
> It is very starnge, when I try to build the hello.cpp file it shows as if it is building but in the end I get no hello.o file and no hello.exe file.
> It looks as if make is not trying to compile my hello.cpp file.
>
> I tried it both ways, first I did not have a make and gcc compiler on the system.
> I tried compiling the hello.cpp code and make did not generate any errors but did not build the file either.
> Then I installed cygwin and tried again, same results.
> Then I installed MinGW and still same results, make does not build and does not generate any errors.
>
> At this point I figured I must have an old version of CDT so I went and got the newest version of CDT but still I am having the same problems.
> Does anyone know why this is happening and how can I circumvent this behaviour!
>
> Thanks,
>
> Roman Levandovsky.
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03682 seconds