Author Topic: Unrecognized command line option ‘-mthreads’  (Read 305 times)

Offline spflanze

  • Multiple posting newcomer
  • *
  • Posts: 53
Unrecognized command line option ‘-mthreads’
« on: June 26, 2018, 01:21:47 am »
I have transferred wxWidgets project files from a Windows 7 computer to an Ubuntu 16.04 computer. On the Windows 7 computer I was using MinGW to compile with.

I installed wxWdgets 3.0.3, and Code::Blocks 13.12, on my Ubuntu computer where I was able to open the transferred project file. But when I attempt a compile with the a Debug build target set I get the error:
Quote
g++: error: unrecognized command line option ‘-mthreads’
How is this error solved?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11144
    • Travis build status
Re: Unrecognized command line option ‘-mthreads’
« Reply #1 on: June 26, 2018, 01:48:17 am »
The windows and linux options aren't the same. You'll have to make adjustments in the Project -> Build options.
The best would be to create a simple wxwidgets project and see what options you need to pass.

Another option is to do File -> New -> Build target -> wxWidgets.
This would add a new target to your current project which might work out of the box.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]