VC / MSW specific
Affects: src/msw/glcanvas.cpp
Normally when you add opengl support to wx, you have
to add opengl32.lib and glu32.lib to the project or
makefile (as well as changing setup.h).
This patch makes use of the "#pragma comment ...",
capability of MS VC, to automatically add these libraries
without having to change the .dsp
Trivial change that should reduce,
1. Locally modified copies of DSP
2. Newbie issues.
Risks: Preprocessor only checks for presence of Visual C.
I've no data on what revisions support this option, and
the "world-wide-interweb" wasn't that helpful either.
Should be worth a punt, and can be locked down to
specific revision of VC using "#ifdef _MSC_VER == ..."
type stuff if we find problems. Should at least work for
version 5.0 onwards.
Ext: If anyone knows of similar patches for other
compilers, that would be good..
Nobody/Anonymous
MSW specific
bug fix
Public
| Filename | Description | Download |
|---|---|---|
| opengl_msw_link.patch | Patch file | Download |
| opengl_msw_link_2.patch | Replacement Patch file | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2003-07-09 23:18 | vadz |
| resolution_id | None | 2003-07-09 23:18 | vadz |
| close_date | - | 2003-07-09 23:18 | vadz |
| File Added | 53258: opengl_msw_link_2.patch | 2003-06-16 20:24 | davidfa |
| File Added | 52933: opengl_msw_link.patch | 2003-06-12 19:13 | davidfa |