News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

unknown argument (xcode 5.1 bug?)

Started by sturik, August 06, 2014, 08:06:08 AM

Previous topic - Next topic

sturik

Hello there,

I'm pretty new to programming and am starting to get into developing some musical software on OSX 10.9.3. I installed wxwidgets 3.0.2 and the latest version of codeblocks, and when attempting to build the workspace I am given the error message:

Quoteg++ -Wall -DUSE_TINYXML -DGCC  -g -mthreads -D_WIN32 -DDEBUG -D_LIB    -I/Users/HD/Documents/workspace/Synth_project/basicsynth/Include  -c /Users/HD/Documents/workspace/Synth_project/basicsynth/Src/Notelist/Converter.cpp -o debugi686/Converter.o
clang: error: unknown argument: '-mthreads' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

I have read on numerous boards (http://kaspermunck.github.io/2014/03/fixing-clang-error/) that this is a problem with xcode 5.1, but I am pretty new to coding and am unsure how to resolve this for codeblocks on OSX. Any help would be greatly appreciated.

Thanks.

oBFusCATed

-mthreads is a windows gcc flag, how have you created the project? Does simple hello world project created from scratch works?
(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!]

sturik

Ah, you're right. I neglected to mention I am using project built under Visual Basic called basicsynth (https://sourceforge.net/projects/basicsynth/). I am still wanting to use this project to learn how to build synth software. I see the file it has the problem with but I'm unsure what to change.

sturik

Okay, it was because I was trying to build using Debug Win32. Computers truly are logic machines  ::). Thanks for pointing this out.