User forums > Using Code::Blocks
Getting windows switch /EHs error compiling in Linux
(1/1)
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?
--- End quote ---
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.
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.
--- End quote ---
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?
Navigation
[0] Message Index
Go to full version