On Wed, 09 May 2007 08:15:36 +0200 Christian Buhtz <[EMAIL PROTECTED]> wrote:
CB> There is this include-path: CB> In file included from C:/wxWidgets-2.8.3/include/wx/platform.h:196, CB> from C:/wxWidgets-2.8.3/include/wx/defs.h:21, CB> from include/Mconfig.h:18, CB> from include/Mpch.h:14, CB> from CB> D:\Garage\projekte\mahogany\mahoganySVN\src\Python\InitPython.cpp:13: CB> CB> In platform.h is msvc/wx/msw/setup.h included and throws an CB> #error "This file should only be included when using Microsoft Visual C++" Yes, this file is MSVC-specific. You shouldn't have wxWidgets/include/msvc directory in your include path. CB> In the same include-path wx/chkconf.h is read and throws a lot of errors CB> like error "wxUSE_DYNLIB_CLASS must be defined." No, wx/chkconf.h is in different path (wxWidgets/include). And if it gives these errors it probably means that the correct wx/setup.h wasn't included, likely because the incorrect one in msvc/wx/msw was included instead. CB> 1. How to you control wich compiler is used. Did you set #defines CB> somewhere explicite? Why does wxWidgets include msvc-specific setup.h? It doesn't... This file is unused during wxWidgets compilation, it's only there for MSVC users to use in their own projects. Mahogany MSVC project does use it, but CodeBlocks project shouldn't. CB> 2. How do you use wxWidgets with M? Did you link static against it? Did CB> you use it as DLL? I use a static version of just because it's simpler. In principle, using DLL should work too but I've never tried it under Windows. So it would probably be better if you started with static build of wx too, just to avoid having too many problems at once. Good luck! VZ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mahogany-Developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
