Author Topic: cc1plus error "-mthreads"  (Read 6059 times)

Offline Pille456

  • Single posting newcomer
  • *
  • Posts: 7
cc1plus error "-mthreads"
« 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!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: cc1plus error "-mthreads"
« Reply #1 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

« Last Edit: July 13, 2009, 07:59:48 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pille456

  • Single posting newcomer
  • *
  • Posts: 7
Re: cc1plus error "-mthreads"
« Reply #2 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
« Last Edit: July 15, 2009, 05:52:56 pm by Pille456 »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: cc1plus error "-mthreads"
« Reply #3 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 ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: cc1plus error "-mthreads"
« Reply #4 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
« Last Edit: July 15, 2009, 11:21:43 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pille456

  • Single posting newcomer
  • *
  • Posts: 7
Re: cc1plus error "-mthreads"
« Reply #5 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!