News:

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

Main Menu

Getting windows switch /EHs error compiling in Linux

Started by jim12345, December 24, 2010, 03:50:52 PM

Previous topic - Next topic

jim12345

I am using code:blocks 64 bit with kubuntu build 10.05.  The compiler is Intel ComposerXE-2011. When I compile I get the error:
icpc: error #10236: File not found: '/EHs'

For some reason code:blocks is turning on windows exception handling and the Intel compiler is complaining and not producing any output.
Does anyone have a solution for this?

MortenMacFly

Quote from: jim12345 on December 24, 2010, 03:50:52 PM
For some reason code:blocks is turning on windows exception handling and the Intel compiler is complaining and not producing any output.
Does anyone have a solution for this?
Turn off this feature in your project options (compiler settings) at project/target level (depending on your setup). Alternatively check you global compiler options whether this flag has been turned on there.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

jim12345

My target is Unix and there are no switches turned on for exception handling.
The full compiler line is:
icpc -Wall /EHs  -w0  -g    -c main.cpp -o obj/Debug/main.o
icpc: error #10236: File not found:  '/EHs'

MortenMacFly

Quote from: jim12345 on December 24, 2010, 04:21:31 PM
My target is Unix and there are no switches turned on for exception handling.
Trust me, there is.

Please also check build options -> compiler settings -> tab "other options".

Again, at project / target(s) and global compiler options level.

BTW: Did you import your project from a VS solution?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]