Code::Blocks Forums

User forums => Help => Topic started by: timewastin on January 22, 2010, 10:06:02 am

Title: Code::Blocks and Intel C++ Compiler
Post by: timewastin on January 22, 2010, 10:06:02 am
[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:

Code
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 (http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Intel_C.2B.2B_Compiler) (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! :)
Title: Re: Code::Blocks and Intel C++ Compiler
Post by: stahta01 on January 23, 2010, 06:15:36 pm
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Title: Re: Code::Blocks and Intel C++ Compiler
Post by: timewastin on January 23, 2010, 07:10:20 pm
Thank you! Now I get this:

Code
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