News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks and Intel C++ Compiler

Started by timewastin, January 22, 2010, 10:06:02 AM

Previous topic - Next topic

timewastin

[EDIT]
If others have the same problem, it can be solved by simply re-installing the .NET Framework!
[/EDIT]



Hi everyone,

I'm trying to set up Code::Blocks with the Intel C++ Compiler. I have tried Code::Blocks 8.02 and the January 16 Nightly Build, and Intel C++ Compiler v10.1.014 with Visual C++ 2008 SP1.

When trying to compile a simple "hello.cpp", it seems to create a "hello.obj" file, but it doesn't link a "hello.exe". Instead, it exits with the following error:

hello.cpp
Linking console executable: d:\docs\cpp\hello.exe
xilink: executing 'link'
xilink: error spawn_errno_EINVAL: unable to run 'link'
Process terminated with status -1 (0 minutes, 2 seconds)
0 errors, 0 warnings


I have set up all paths as described in the wiki (changed to fit my system).

Note that before this error, I used to get a different error saying that "libc.lib" wasn't found. After placing libc.lib in the ...\VC\lib directory, that error disappeared, but this one came up.

Any help would be much apreciated! :)

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

timewastin

Thank you! Now I get this:

icl.exe /nologo   /ID:\programme\codeblocks\Intel\Compiler\C++\10.1.014\IA32\include /ID:\programme\codeblocks\msvc\VC\include /ID:\programme\codeblocks\msvc\SDK\Include  /c d:\docs\cpp\hello.cpp /Fod:\docs\cpp\hello.obj
hello.cpp
xilink.exe /nologo /LIBPATH:D:\programme\codeblocks\Intel\Compiler\C++\10.1.014\IA32\lib /LIBPATH:D:\programme\codeblocks\msvc\VC\lib /LIBPATH:D:\programme\codeblocks\msvc\SDK\Lib  /out:d:\docs\cpp\hello.exe  d:\docs\cpp\hello.obj  
xilink: executing 'link'
xilink: error spawn_errno_EINVAL: unable to run 'link'
Process terminated with status -1 (0 minutes, 7 seconds)
0 errors, 0 warnings