Author Topic: Code::Blocks and Intel C++ Compiler  (Read 7715 times)

Offline timewastin

  • Single posting newcomer
  • *
  • Posts: 2
Code::Blocks and Intel C++ Compiler
« 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 (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! :)
« Last Edit: February 05, 2010, 09:58:39 am by timewastin »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline timewastin

  • Single posting newcomer
  • *
  • Posts: 2
Re: Code::Blocks and Intel C++ Compiler
« Reply #2 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