Building project in XCode


#1

I’m sorry if it’s a well known issue, I just didn’t find how to solve it. I’m totally new to Mac OSX, and I want to build my JUCE app on it. There was no problem with building the sample projects, however whenever I try to do it with my own, I get a lot of errors when it reaches juce_LibrarySource.cpp. Here’s a screenshot, maybe some of you already got the same errors, and know what I should do in this case:

(btw I didn’t create a new project, I put my files to the sample project of juce demo but I guess it should not be a problem)


#2

remove the c++ from CFLAGS


#3

erm… where exactly can I find that? :oops:


#4

xcode project option named Other C Flags


#5

Don’t bother messing about with flags - on a mac, you should be using juce_LibrarySource.mm, not juce_LibrarySource.cpp!


#6

thanks! it works with the mm file :slight_smile: