I was trying to compile the main component tutorial code given online. When I tried to run it on Xcode after adding the NewComponent files in introjucer I recieved multiple errors. So I created a blank project and wrote the exact same code myself in it. I also made sure that I generated the required header and .cpp files in introjucer before writing the code in Xcode. However when I compile this project I get the following linker error- linker command failed with exit code 1.
Do any of you have a suggestion on how to deal with it? Have anyone of you been in a similar situation before??
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime, file was built for i386 which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks//QuickTime.framework/QuickTime
Bumping this. I'm getting the same error when trying to compile the Jordan Harris project "VAStateVariableFilter": https://github.com/JordanTHarris/VAStateVariableFilter
Perhaps you have two instances of a START_JUCE_APPLICATION (MainWindowTutorialApplication) or START_JUCE_APPLICATION(..something..). They must be in different files otherwise this would be a compiler, rather than linker error.
This would create two main() functions therefore there are duplicate symbols when linked.