Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » C++ compile problems
C++ compile problems [message #717573] Sun, 21 August 2011 13:04 Go to next message
Tomas  is currently offline Tomas Friend
Messages: 3
Registered: August 2011
Junior Member
Hi, I have some serious problems with toolchains

Firstly I had Cygwin GCC and in Eclipse it also showed Cross GCC, I tried to build simple "Hello world"

Cross GCC
...
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16'
...


Cygwin GCC
...
../sas.cpp:24: error: `cout' undeclared (first use this function)
...


So I installed VS 2010 express (VS IDE builds without problem) and also MinGW and used them as toolchains in Eclipse

Result

VS 2010
cl /c /EHs /MD /Zi /nologo /Fosda.obj ..\sda.cpp
Internal Builder: Cannot run program "cl" (in directory "C:\Users\Admin\workspace\test4\Debug"): CreateProcess error=2, Systém nemô?e nájs? zadaný súb
Error: Program "cl" is not found in PATH

PATH=[C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\cygwin\bin;C:\Program Files (x86)\proXPN\bin]
Build error occurred, build is stopped


MinGW
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o test.o ..\test.cpp
Error: Cannot run program "g++" (in directory "C:\Users\Admin\workspace\TESTA\Debug"): CreateProcess error=216, CreateProcess failed
Build error occurred, build is stopped


I have a feeling that I'm just missing something small...
Re: C++ compile problems [message #717586 is a reply to message #717573] Sun, 21 August 2011 14:28 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

See this forum at eclipse.org and read the sticky posts at the top.

On 2011.08.21 7:04, Tomas wrote:
> Hi, I have some serious problems with toolchains
>
> Firstly I had Cygwin GCC and in Eclipse it also showed Cross GCC, I
> tried to build simple "Hello world"
>
> Cross GCC
> ..
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):(.text+0xa9):
> undefined reference to `_WinMain@16'
> ..
> Cygwin GCC
> ..
> ./sas.cpp:24: error: `cout' undeclared (first use this function)
> ..
>
> So I installed VS 2010 express (VS IDE builds without problem) and also
> MinGW and used them as toolchains in Eclipse
>
> Result
>
> VS 2010
> cl /c /EHs /MD /Zi /nologo /Fosda.obj ..\sda.cpp
> Internal Builder: Cannot run program "cl" (in directory
> "C:\Users\Admin\workspace\test4\Debug"): CreateProcess error=2, Systém
> nemô?e nájs? zadaný súb
> Error: Program "cl" is not found in PATH
>
> PATH=[C:\Program Files\Common Files\Microsoft Shared\Windows
> Live;C:\Program Files (x86)\NVIDIA
> Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
> Files\Intel\DMIX;C:\cygwin\bin;C:\Program Files (x86)\proXPN\bin]
> Build error occurred, build is stopped
>
> MinGW
> g++ -O0 -g3 -Wall -c -fmessage-length=0 -o test.o ..\test.cpp
> Error: Cannot run program "g++" (in directory
> "C:\Users\Admin\workspace\TESTA\Debug"): CreateProcess error=216,
> CreateProcess failed
> Build error occurred, build is stopped
>
> I have a feeling that I'm just missing something small...
>
Previous Topic:Startup Errors: "XML document structures"
Next Topic:From a newbie : should I install more than one package?
Goto Forum:
  


Current Time: Wed Apr 24 23:17:13 GMT 2024

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

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

Back to the top