[wxMAC 2.8.3] Problem with compiling "appbase.cpp"

Vadim Zeitlin vadim at wxwindows.org
Fri May 18 07:21:58 PDT 2007


On Wed, 16 May 2007 19:39:18 +0200 H <H at h.com> wrote:

H> No, I am not developing for OS 9. But I did not know that I should 
H> define __UNIX__, too.

 Normally you don't, configure does this for you. I was under impression
that Xcode projects did this too but I don't use Xcode myself. If you
create your own make/project files for some reason you should reproduce all
the settings used for command-line builds, including /D__UNIX__=1.

H> Actually, I had a look at some headers and found constructs like that
H> 
H> #elif defined (__UNIX__)
H> ...
H> #elif define (__WXMAC__)
H> #include "wx/mac/..."
H> ...
H> 
H> So, these statements imply that __UNIX__ does not have to be declared 
H> when compiling Mac code.

 But it should be defined under OS X. Maybe it means that "#elif" should be
just removed, of course.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list