User forums > Help
cc1plus error "-mthreads"
Pille456:
Hi!
I tried to compile a wxWidgets project on Ubuntu, which worked fine on Windows XP. It seems that codeblocks already linked the necessary wxWidgets-files, but it keeps telling me this:
--- Code: ---cc1plus: error unknown commandline-operation »-mthreads«(translated from German to English)
--- End code ---
I already searched around the build options and the project properties but didnt find anything suitable. Does anyone have an idea how to solve this error?
thanks!
stahta01:
Remove the option "-mthreads"; IIRC, it is a window only option.
--- Quote ---Support thread-safe exception handling on Mingw32.
--- End quote ---
FYI: "-mthreads" should be under
"Project" -> "Build Options"
Tab "Compiler Settings"
Sub-Tab "Other Options"
Need to check on all targets in left hand pane.
Tim S
Pille456:
Hm thank you for your answere, but there is no option "-mthreads" that can be found under "Project build options->Compiler settings->other options"
Neither under "debug" nor under "release". I guess a new project should work fine with linux - i'm going to make a new one when I've time. So up to then, if someone has another idea - i'm happy about every comment ;)
And by the way: thank you for the explanation of the -mthread option, where did you found this? Google wasn't so chatty when i search
Jenna:
--- Quote from: Pille456 on July 15, 2009, 05:49:56 pm ---Neither under "debug" nor under "release".
--- End quote ---
And what is with the projects optiions, common to both build targets ?
stahta01:
--- Quote from: Pille456 on July 15, 2009, 05:49:56 pm ---And by the way: thank you for the explanation of the -mthread option, where did you found this? Google wasn't so chatty when i search
--- End quote ---
Found using Google; but, I have no idea what terms I used.
mthreads gcc option gives
http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/i386-and-x86-64-Options.html
Tim S
Navigation
[0] Message Index
[#] Next page
Go to full version