Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot run gcc compiler
Cannot run gcc compiler [message #123142] Mon, 11 October 2004 07:29 Go to next message
Eclipse UserFriend
Originally posted by: michel.dominique1.free.fr

C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_0017_01C4AF96.5D732940
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello !

i've installed org.eclipse.cdt.sdk-2.0.2-win32.x86. All is fine except =
that it cannot find the gcc compiler program.
I get the following output when building my project:

C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>make -k all
Building target: Test.exe
C:\Cygwin\bin\gcc -o Test.exe essai.o
make: *** [Test.exe] Error 1
make: Target `all' not remade because of errors.

C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>make -k all
Building target: Test.exe
gcc -o Test.exe essai.o
process_begin: CreateProcess((null), gcc -o Test.exe essai.o, ...) =
failed.
make (e=3D2): Le fichier sp=DAcifi=DA est introuvable.
make: *** [Test.exe] Error 2
make: Target `all' not remade because of errors.

C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>gcc -o Test.exe =
essai.o

C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>Test.exe

So, the gcc works fine at the command prompt but not in the Eclipse IDE.
I also add the full path of gcc in the project's property form but I now =
get an error because it cannot find cywin dll.

The bin directory of cygwin is well-declared in the PATH environment =
variable.

Does somebody know where is the problem ?

Thanks.
Michel.

------=_NextPart_000_0017_01C4AF96.5D732940
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4937.800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i've installed =
org.eclipse.cdt.sdk-2.0.2-win32.x86.=20
All is fine except that it cannot find the gcc compiler =
program.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I get the following output when =
building my=20
project:</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2></FONT><BR><FONT face=3DArial=20
size=3D2>C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug&gt;make -k=20
all<BR>Building target: Test.exe<BR>C:\Cygwin\bin\gcc&nbsp; -o =
Test.exe=20
essai.o<BR>make: *** [Test.exe] Error 1<BR>make: Target `all' not =
remade=20
because of errors.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug&gt;make -k=20
all<BR>Building target: Test.exe<BR>gcc&nbsp; -o Test.exe=20
essai.o<BR>process_begin: CreateProcess((null), gcc -o Test.exe =
essai.o, ...)=20
failed.<BR>make (e=3D2): Le fichier sp=DAcifi=DA est =
introuvable.<BR>make: ***=20
[Test.exe] Error 2<BR>make: Target `all' not remade because of=20
errors.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2> C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug&gt;gcc&a mp;nbsp; =
-o=20
Test.exe essai.o</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
=
size=3D2> C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug&gt;Test. exe <BR><=
/FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2>So, the gcc works fine at the command =
prompt but=20
not in the Eclipse IDE.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I also add the full path of gcc in the =
project's=20
property form but I now get an error because it cannot find cywin=20
dll.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The bin directory of cygwin is =
well-declared in the=20
PATH environment variable.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does somebody know where is the problem =

?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Michel.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0017_01C4AF96.5D732940--
Re: Cannot run gcc compiler [message #123154 is a reply to message #123142] Mon, 11 October 2004 08:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Uwe.bc-rainbow.de

Michel,

from this excerpt

C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>make -k all
Building target: Test.exe
C:\Cygwin\bin\gcc -o Test.exe essai.o
make: *** [Test.exe] Error 1
make: Target `all' not remade because of errors.

it seems your makefile tries to start gcc from c:\cygwin\bin
which may or may not be the location it resides. Try omitting
the path in your makefile and see if that helps.

-uwe
Re: Cannot run gcc compiler [message #123166 is a reply to message #123154] Mon, 11 October 2004 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michel.dominique1.free.fr

Hi Uwe !

thanks for help !
I removed the cygmin absolute path but it still doesn't work (see the output
below).
Do you have another idea ?


**** Incremental build of configuration Debug for project Test ****

make -k all
Building file: ../essai.c
gcc -O0 -g3 -Wall -c -fmessage-length=0 -o essai.o ../essai.c
process_begin: CreateProcess((null), gcc -o Test.exe essai.o, ...) failed.
make (e=2): Le fichier sp
Re: Cannot run gcc compiler [message #123215 is a reply to message #123166] Tue, 12 October 2004 02:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Uwe.bc-rainbow.de

Michel,

sorry for not getting back earlier, but I do not have any other idea
anyway, sorry.

-uwe
Re: Cannot run gcc compiler [message #123265 is a reply to message #123142] Tue, 12 October 2004 09:55 Go to previous messageGo to next message
Eclipse UserFriend
MD,
What variant of the Windows OS are you running Eclipse on?

Sean

MD wrote:
> Hello !
>
> i've installed org.eclipse.cdt.sdk-2.0.2-win32.x86. All is fine except that it cannot find the gcc compiler program.
> I get the following output when building my project:
>
> C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>make -k all
> Building target: Test.exe
> C:\Cygwin\bin\gcc -o Test.exe essai.o
> make: *** [Test.exe] Error 1
> make: Target `all' not remade because of errors.
>
> C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>make -k all
> Building target: Test.exe
> gcc -o Test.exe essai.o
> process_begin: CreateProcess((null), gcc -o Test.exe essai.o, ...) failed.
> make (e=2): Le fichier spÚcifiÚ est introuvable.
> make: *** [Test.exe] Error 2
> make: Target `all' not remade because of errors.
>
> C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>gcc -o Test.exe essai.o
>
> C:\eclipse-SDK-3.0.1-win32\workspace\Test\Debug>Test.exe
>
> So, the gcc works fine at the command prompt but not in the Eclipse IDE.
> I also add the full path of gcc in the project's property form but I now get an error because it cannot find cywin dll.
>
> The bin directory of cygwin is well-declared in the PATH environment variable.
>
> Does somebody know where is the problem ?
>
> Thanks.
> Michel.
>
Re: Cannot run gcc compiler [message #123291 is a reply to message #123265] Tue, 12 October 2004 13:09 Go to previous message
Eclipse UserFriend
Originally posted by: michel.dominique1.free.fr

Hello !

I run Eclipse on Windows XP. I found a workaround to solve my problm : I've
copied the cygwin1.dll file in the system32 directory and gave the full
pathname to the gcc program in the configuration settings of the C/C++ build
tab in the properties dialog form. All is working fine now !

Thanks for your help;
Michel.

"Sean Evoy" <sevoy@ca.ibm.com> a
Previous Topic:C/C++ Indexer on/off default
Next Topic:Managed C++ does not handle linked .c files
Goto Forum:
  


Current Time: Wed Mar 12 16:08:39 EDT 2025

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

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

Back to the top