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:
cc1plus: error unknown commandline-operation »-mthreads«(translated from German to English)
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!
Remove the option "-mthreads"; IIRC, it is a window only option.
QuoteSupport thread-safe exception handling on Mingw32.
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
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
Quote from: Pille456 on July 15, 2009, 05:49:56 PM
Neither under "debug" nor under "release".
And what is with the projects optiions, common to both build targets ?
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
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
It has been a while, but I finally was able to get stuff working here.
QuoteAnd what is with the projects optiions, common to both build targets ?
Nothing there. I guess that C::B maybe had set some options automatically for windows (I started the project there), which I cant reset now, because I cant find them. Strange issue, but I could fix it making a new project.
Now everything works fine!