[wx-dev] wxMac: URefCon not defined
Steven Van Ingelgem
steven at vaningelgem.be
Tue Feb 5 21:55:59 PST 2008
Something very weird is going on:
I added this macro into minimal.cpp
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_2
# error < 10.2
#elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3
# error < 10.3
#elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_4
# error < 10.4
#elif MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
# error < 10.5
#else
# error >= 10.5
#endif
This gave me the error "< 10.5" ?? (I'm on Mac OSX 10.5).
However in my own code this gave me the error ">= 10.5".
The minimal sample it's build line:
/Users/steven/wxWidgets28/My_wxBuild_STATIC/bk-deps g++ -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -c -o
minimal_minimal.o -D__WXMAC__ -I../../../samples/minimal
-I../../../samples/minimal/../../samples -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -I/Users/steven/wxWidgets28/My_wxBuild_STATIC/lib/wx/include/mac-unicode-release-static-2.8
-I../../../include -fpascal-strings
-I../../../src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon
-Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -arch
ppc -arch i386 -fno-common ../../../samples/minimal/minimal.cpp
whereas my own buildline:
/usr/bin/c++ -D_STLP_USE_STATIC_LIB -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D__WXMAC__ -O -g -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -D__WXMAC__
-I/usr/lib/wx/include/mac-unicode-release-static-2.8
-I/usr/include/wx-2.8 -o
CMakeFiles/WebAztec.dir/Browsers/Firefox.cpp.o -c
/Users/steven/WebAztec/Browsers/Firefox.cpp
As you might notice, I didn't include "-mmacosx-version-min=10.4".
The reason being because it's not outputted by wx-config (you can only
get it with "--cc", but I don't want to use that one.
Maybe this helps you better debug this issue?
Greetings,
Steven
On 02/02/2008, Steven Van Ingelgem <steven at vaningelgem.be> wrote:
> I erased the builtin version ;) Mayhaps that gives problems, but until
> now I didn't encounter any...
More information about the wx-dev
mailing list