User forums > Help

Unrecognized command line option ‘-mthreads’

(1/1)

spflanze:
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’
--- End quote ---
How is this error solved?

oBFusCATed:
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.

Navigation

[0] Message Index

Go to full version