OS | : Microsoft Windows NT 4.0 SP 3 |
Compiler | : Watcom 11.0b (IDE) |
wxWindows | : 2.2.0 |
Hi Watcomer!
I used the Microsoft Visual C++ project files as a source for
information and added everything (sources, switches, symbols, ...)
from them. Don't forget to set the wxWindows environment variable with
SET WXWIN=<wxWindows Directory>
in your AUTOEXEC.BAT
(or User Environment in NT). I've
created only Release configurations so far. If you want Debug
configurations you may want to create them in a new directory.
Please send me comments, suggestions or corrections!
Good luck!
I don't care much about compiler switches but somebody else maybe would. Below is a table for fastest and smallest code. This is originally from Stephen Howe [TeamSybase] out of Watcom's newsgroup (M2rU0bPN$GA.268@forums.sybase.com). Many thanks to him. Note that the Pentium Pro switches are usable for Pentium II and III too (they're all 686 prozessors, follow the newsgroup thread for more).
Pentium Pro: | /oneatx /oh /oi+ /ei /zp8 /6 /fp6 |
Pentium: | /oneatx /oh /oi+ /ei /zp8 /5 /fp5 |
486: | /oneatx /oh /oi+ /ei /zp8 /4 /fp3 |
386: | /oneatx /oh /oi+ /ei /zp8 /3 /fp3 |
Pentium Pro: | /oabhkrs /s /em /zp1 /6 /fp6 |
Pentium: | /oabhkrs /s /em /zp1 /5 /fp5 |
486: | /oahkrs /s /em /zp1 /4 /fp3 |
386: | /oahkrs /s /em /zp1 /3 /fp3 |
Unfortunately you can't reach all switches when using the IDE. You have to use makefiles instead.
I've disabled lines 40, 41, 42 and 44 because my Watcom C++ likes long filenames.
I've disabled lines 34, 35, 36 and 38 because my Watcom C++ likes long filenames.
Changed constructor parameter from 'const wxWindowID id = -1
' to
'wxWindowID id = -1
' because it's not const
in the
.cpp file, const
makes little sense with call by value and
Watcom complains about it.
Some warnings are produced during compilation. I haven't corrected them because they're not very dangerous.
If you re-compile the library quite often you may wish to speed up compilation by using precompiled header for all core library .cpp files (.cpp files in wx.lib). You'll find support for precompiled header in all wxWindows related source files but IMHO it makes no sense for e.g. zlib.lib because it compiles already very fast. For Watcom the whole thing only works well if the compiler settings are the same for all source files. Otherwise the precompiled header will be re-created every time the compiler settings change (if e.g. the include path changes). To optimize the usage of pre-compiled headers please remove all additional include path switches for individual .cpp files in wx.lib and apply the following changes:
Changed line 212 from '#include "../common/doslex.c"
' to
'#include "../src/common/doslex.c"
'.
Change line 33 from '#include "jpeglib.h"
' to
'#include "../jpeg/jpeglib.h"
'.
Change line 32 from '#include "png.h"
' to
'#include "../png/png.h"
'.
Change line 32 from '#include "tiff.h"
' to
'#include "../tiff/tiff.h"
'.
Change line 33 from '#include "tiffio.h"
' to
'#include "../tiff/tiffio.h"
'.
Change line 24 from '#include "zlib.h"
' to
'#include "../zlib/zlib.h"
'.
Change line 56 from '#include "zlib.h"
' to
'#include "../zlib/zlib.h"
'.
Change line 163 from '#include "zlib.h"
' to
'#include "../zlib/zlib.h"
'.
Please visit my MN Watcom Page for more information about Watcom.
All product names mentioned on this page and on linked pages are the trademarks or registered trademarks of their respective owners.
HTML encoding by
Markus 'Howlingmad' Neifer
First released: 07/12/2000
Last updated: 07/12/2000