Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT on Windows 98 - can not build hello.cpp with make
CDT on Windows 98 - can not build hello.cpp with make [message #44856] Thu, 10 October 2002 18:56 Go to next message
Eclipse UserFriend
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 #44905 is a reply to message #44856] Thu, 10 October 2002 19:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roman.levandovsky.guest-tek.com

Also I have noticed that the .project.xml file looks odd when I make a C project.
This is what it looks like:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TestMake</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.core.cbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
</natures>
</projectDescription>

If you notice there is no arguments to buildCommand is this normal?

Roman.

On Thu, 10 Oct 2002 22:56:29 GMT, Roman Levandovsky <roman.levandovsky@guest-tek.com> 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.
>
>
>
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
>
>
>
Re: CDT on Windows 98 - can not build hello.cpp with make [message #44949 is a reply to message #44926] Thu, 10 October 2002 21:26 Go to previous message
Eclipse UserFriend
> Variable Name: Path
> Variable Value: %Path%;C:\cygwin

Sorry, that should have read "%Path%;C:\cygwin\bin".

Brian
Previous Topic:Equivalent of jdt.core.IJavaProject?
Next Topic:Compiler error strings.
Goto Forum:
  


Current Time: Tue Mar 11 07:22:47 EDT 2025

Powered by FUDForum. Page generated in 0.03682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top