Code::Blocks Forums

User forums => Help => Topic started by: Pille456 on July 13, 2009, 01:55:11 pm

Title: cc1plus error "-mthreads"
Post by: Pille456 on July 13, 2009, 01:55:11 pm
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)

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!
Title: Re: cc1plus error "-mthreads"
Post by: stahta01 on July 13, 2009, 07:48:10 pm
Remove the option "-mthreads"; IIRC, it is a window only option.
Quote
Support 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

Title: Re: cc1plus error "-mthreads"
Post by: Pille456 on July 15, 2009, 05:49:56 pm
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
Title: Re: cc1plus error "-mthreads"
Post by: Jenna on July 15, 2009, 06:53:31 pm
Neither under "debug" nor under "release".

And what is with the projects optiions, common to both build targets ?
Title: Re: cc1plus error "-mthreads"
Post by: stahta01 on July 15, 2009, 11:19:13 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
Title: Re: cc1plus error "-mthreads"
Post by: Pille456 on July 20, 2009, 11:08:15 am
It has been a while, but I finally was able to get stuff working here.
Quote
And 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!