Author Topic: Getting windows switch /EHs error compiling in Linux  (Read 6240 times)

Offline jim12345

  • Single posting newcomer
  • *
  • Posts: 2
Getting windows switch /EHs error compiling in Linux
« on: December 24, 2010, 03:50:52 pm »
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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Getting windows switch /EHs error compiling in Linux
« Reply #1 on: December 24, 2010, 03:55:07 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline jim12345

  • Single posting newcomer
  • *
  • Posts: 2
Re: Getting windows switch /EHs error compiling in Linux
« Reply #2 on: December 24, 2010, 04:21:31 pm »
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'

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Getting windows switch /EHs error compiling in Linux
« Reply #3 on: December 24, 2010, 09:05:47 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ