User forums > Help
unknown argument (xcode 5.1 bug?)
(1/1)
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:
--- Quote ---g++ -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
--- End quote ---
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?
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.
Navigation
[0] Message Index
Go to full version