Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » C-Build path
C-Build path [message #75682] Tue, 15 July 2003 15:45 Go to next message
Eclipse UserFriend
When running make file from within C-Build in the CDT plug-in for
Eclipse (on Win98) it doesn't appear to pay attention to the defined DOS
Path:

C:\msys\1.0\bin\make -k clean
rm -rf hello.exe main.o
make: rm: Command not found
make: *** [clean] Error 127

The makefile works fine when run from a DOS prompt.

How do you get C-Build to use the DOS Path such that it can find the
compilation executables?

Matt
http://www.strontiumdog.net
Re: C-Build path [message #75699 is a reply to message #75682] Tue, 15 July 2003 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Matt Seaborn wrote:

> When running make file from within C-Build in the CDT plug-in for
> Eclipse (on Win98) it doesn't appear to pay attention to the defined DOS
> Path:
>
> C:\msys\1.0\bin\make -k clean
> rm -rf hello.exe main.o
> make: rm: Command not found
> make: *** [clean] Error 127
>
> The makefile works fine when run from a DOS prompt.

Have you been adding C:\msys\1.0\bin to your PATH variable?
Did you restart Eclipse after changing the PATH variable?

> How do you get C-Build to use the DOS Path such that it can find the
> compilation executables?

Add the MinGW binary-path and the MSYS binary path both to PATH.
You'll need to restart Eclipse if it had been running at this point.
Afterwards, Eclipse should recognise it.

> Matt
> http://www.strontiumdog.net
>
Re: C-Build path [message #75988 is a reply to message #75699] Wed, 16 July 2003 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Indeed I have:

C:\WINDOWS>path
PATH=C:\MSYS\1.0\BIN;C:\MINGW\BIN

Which is clearly correct as the make runs fine from the DOS Prompt:

C:\HelloWorld>make -k clean all
rm -rf hello.exe main.o
g++ -g -c -o main.o main.cpp
g++ -g -o hello.exe main.o

Eclipse just doesn't appear to be using the PATH environment variable
(it only gets this far because I supply the path to make.exe in the
Build Command)

C:\msys\1.0\bin\make -k clean all
make: rm: Command not found
rm -rf hello.exe main.o
make: *** [clean] Error 127
make: g++: Command not found
g++ -g -o hello.exe main.o
make: *** [all] Error 127


kesselhaus wrote:
> Matt Seaborn wrote:
>
>> When running make file from within C-Build in the CDT plug-in for
>> Eclipse (on Win98) it doesn't appear to pay attention to the defined
>> DOS Path:
>>
>> C:\msys\1.0\bin\make -k clean
>> rm -rf hello.exe main.o
>> make: rm: Command not found
>> make: *** [clean] Error 127
>>
>> The makefile works fine when run from a DOS prompt.
>
>
> Have you been adding C:\msys\1.0\bin to your PATH variable?
> Did you restart Eclipse after changing the PATH variable?
>
>> How do you get C-Build to use the DOS Path such that it can find the
>> compilation executables?
>
>
> Add the MinGW binary-path and the MSYS binary path both to PATH.
> You'll need to restart Eclipse if it had been running at this point.
> Afterwards, Eclipse should recognise it.
>
>> Matt
>> http://www.strontiumdog.net
>>
>
Re: C-Build path [message #76016 is a reply to message #75988] Wed, 16 July 2003 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ashes999.rogers.com

As far as I know, Eclipse doesn't pay attention to the PATH variable. Just
add the path in when you specify what your bulid command is in the project
properties.

--Ashiq

"Matt Seaborn" <Matt@strontiumdog.net> wrote in message
news:bf4208$o1h$1@eclipse.org...
> Indeed I have:
>
> C:\WINDOWS>path
> PATH=C:\MSYS\1.0\BIN;C:\MINGW\BIN
>
> Which is clearly correct as the make runs fine from the DOS Prompt:
>
> C:\HelloWorld>make -k clean all
> rm -rf hello.exe main.o
> g++ -g -c -o main.o main.cpp
> g++ -g -o hello.exe main.o
>
> Eclipse just doesn't appear to be using the PATH environment variable
> (it only gets this far because I supply the path to make.exe in the
> Build Command)
>
> C:\msys\1.0\bin\make -k clean all
> make: rm: Command not found
> rm -rf hello.exe main.o
> make: *** [clean] Error 127
> make: g++: Command not found
> g++ -g -o hello.exe main.o
> make: *** [all] Error 127
>
>
> kesselhaus wrote:
> > Matt Seaborn wrote:
> >
> >> When running make file from within C-Build in the CDT plug-in for
> >> Eclipse (on Win98) it doesn't appear to pay attention to the defined
> >> DOS Path:
> >>
> >> C:\msys\1.0\bin\make -k clean
> >> rm -rf hello.exe main.o
> >> make: rm: Command not found
> >> make: *** [clean] Error 127
> >>
> >> The makefile works fine when run from a DOS prompt.
> >
> >
> > Have you been adding C:\msys\1.0\bin to your PATH variable?
> > Did you restart Eclipse after changing the PATH variable?
> >
> >> How do you get C-Build to use the DOS Path such that it can find the
> >> compilation executables?
> >
> >
> > Add the MinGW binary-path and the MSYS binary path both to PATH.
> > You'll need to restart Eclipse if it had been running at this point.
> > Afterwards, Eclipse should recognise it.
> >
> >> Matt
> >> http://www.strontiumdog.net
> >>
> >
>
Re: C-Build path [message #76446 is a reply to message #76016] Sun, 20 July 2003 05:02 Go to previous messageGo to next message
Eclipse UserFriend
As can be seen from the example below, that enables Eclipse to find the
make.exe, but doesn't allow the make.exe to locate the g++.exe


Ashiq Alibhai wrote:
> As far as I know, Eclipse doesn't pay attention to the PATH variable. Just
> add the path in when you specify what your bulid command is in the project
> properties.
>
> --Ashiq
>
> "Matt Seaborn" <Matt@strontiumdog.net> wrote in message
> news:bf4208$o1h$1@eclipse.org...
>
>>Indeed I have:
>>
>>C:\WINDOWS>path
>>PATH=C:\MSYS\1.0\BIN;C:\MINGW\BIN
>>
>>Which is clearly correct as the make runs fine from the DOS Prompt:
>>
>>C:\HelloWorld>make -k clean all
>>rm -rf hello.exe main.o
>>g++ -g -c -o main.o main.cpp
>>g++ -g -o hello.exe main.o
>>
>>Eclipse just doesn't appear to be using the PATH environment variable
>>(it only gets this far because I supply the path to make.exe in the
>>Build Command)
>>
>>C:\msys\1.0\bin\make -k clean all
>>make: rm: Command not found
>>rm -rf hello.exe main.o
>>make: *** [clean] Error 127
>>make: g++: Command not found
>>g++ -g -o hello.exe main.o
>>make: *** [all] Error 127
>>
>>
>>kesselhaus wrote:
>>
>>>Matt Seaborn wrote:
>>>
>>>
>>>>When running make file from within C-Build in the CDT plug-in for
>>>>Eclipse (on Win98) it doesn't appear to pay attention to the defined
>>>>DOS Path:
>>>>
>>>>C:\msys\1.0\bin\make -k clean
>>>>rm -rf hello.exe main.o
>>>>make: rm: Command not found
>>>>make: *** [clean] Error 127
>>>>
>>>>The makefile works fine when run from a DOS prompt.
>>>
>>>
>>>Have you been adding C:\msys\1.0\bin to your PATH variable?
>>>Did you restart Eclipse after changing the PATH variable?
>>>
>>>
>>>>How do you get C-Build to use the DOS Path such that it can find the
>>>>compilation executables?
>>>
>>>
>>>Add the MinGW binary-path and the MSYS binary path both to PATH.
>>>You'll need to restart Eclipse if it had been running at this point.
>>>Afterwards, Eclipse should recognise it.
>>>
>>>
>>>>Matt
>>>>http://www.strontiumdog.net
>>>>
>>>
>
>
Re: C-Build path [message #76554 is a reply to message #76446] Wed, 23 July 2003 07:54 Go to previous message
Eclipse UserFriend
Originally posted by: no.mail.com

Tried it too, but no go on win me.

it just works 4 me on win nt and xp.

path-lookup in cdt is imho broken under win 9X


Matt Seaborn wrote:


> As can be seen from the example below, that enables Eclipse to find the
> make.exe, but doesn't allow the make.exe to locate the g++.exe


> Ashiq Alibhai wrote:
> > As far as I know, Eclipse doesn't pay attention to the PATH variable. Just
> > add the path in when you specify what your bulid command is in the project
> > properties.
> >
> > --Ashiq
> >
> > "Matt Seaborn" <Matt@strontiumdog.net> wrote in message
> > news:bf4208$o1h$1@eclipse.org...
> >
> >>Indeed I have:
> >>
> >>C:WINDOWS>path
> >>PATH=C:MSYS1.0BIN;C:MINGWBIN
> >>
> >>Which is clearly correct as the make runs fine from the DOS Prompt:
> >>
> >>C:HelloWorld>make -k clean all
> >>rm -rf hello.exe main.o
> >>g++ -g -c -o main.o main.cpp
> >>g++ -g -o hello.exe main.o
> >>
> >>Eclipse just doesn't appear to be using the PATH environment variable
> >>(it only gets this far because I supply the path to make.exe in the
> >>Build Command)
> >>
> >>C:msys1.0binmake -k clean all
> >>make: rm: Command not found
> >>rm -rf hello.exe main.o
> >>make: *** [clean] Error 127
> >>make: g++: Command not found
> >>g++ -g -o hello.exe main.o
> >>make: *** [all] Error 127
> >>
> >>
> >>kesselhaus wrote:
> >>
> >>>Matt Seaborn wrote:
> >>>
> >>>
> >>>>When running make file from within C-Build in the CDT plug-in for
> >>>>Eclipse (on Win98) it doesn't appear to pay attention to the defined
> >>>>DOS Path:
> >>>>
> >>>>C:msys1.0binmake -k clean
> >>>>rm -rf hello.exe main.o
> >>>>make: rm: Command not found
> >>>>make: *** [clean] Error 127
> >>>>
> >>>>The makefile works fine when run from a DOS prompt.
> >>>
> >>>
> >>>Have you been adding C:msys1.0bin to your PATH variable?
> >>>Did you restart Eclipse after changing the PATH variable?
> >>>
> >>>
> >>>>How do you get C-Build to use the DOS Path such that it can find the
> >>>>compilation executables?
> >>>
> >>>
> >>>Add the MinGW binary-path and the MSYS binary path both to PATH.
> >>>You'll need to restart Eclipse if it had been running at this point.
> >>>Afterwards, Eclipse should recognise it.
> >>>
> >>>
> >>>>Matt
> >>>>http://www.strontiumdog.net
> >>>>
> >>>
> >
> >
Previous Topic:CDT: Ant Build Tutorials
Next Topic:someone pls relpy back... if this can be done or not???
Goto Forum:
  


Current Time: Tue Jul 22 14:50:54 EDT 2025

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

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

Back to the top