__LP64__ define problem


#1

Hi,

I 've seen a couple of threads and added preprocessor in my project, but the carbon files are still being compiled and giving compile errors when building 64bit part in universal binary or just a 64bit binary.

Did I miss something important?


#2

oh I see, I need to use #ifndef LP64 in the two carbon cpp files and now have a nice build, feeling bad of adding code to an Apple’s code file.
The settings in the up image works right.


#3

in xcode, you can add a user-defined setting EXCLUDED_SOURCE_FILE_NAMES and set it to Carbon.cpp for x86_64 with a build-settings condition. that should achieve the same effect: http://www.rawmaterialsoftware.com/viewtopic.php?f=8&t=4892&hilit=build+condition+carbon&start=30.

this also works with vst-64bit with a recent juce version.


#4

[quote=“steffen”]in xcode, you can add a user-defined setting EXCLUDED_SOURCE_FILE_NAMES and set it to Carbon.cpp for x86_64 with a build-settings condition. that should achieve the same effect: http://www.rawmaterialsoftware.com/viewtopic.php?f=8&t=4892&hilit=build+condition+carbon&start=30.

this also works with vst-64bit with a recent juce version.[/quote]

nice! thx. I followed those steps.