Share

wxWidgets

Tracker: Patches

5 Links pertinent libs when compiling opengl MSW on VC - ID: 753485
Last Update: Comment added ( vadz )

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..


David Falkinder ( davidfa ) - 2003-06-12 19:13

5

Closed

Accepted

Nobody/Anonymous

MSW specific

bug fix

Public


Comments ( 2 )

Date: 2003-07-09 23:18
Sender: vadzProject AdminAccepting Donations

Logged In: YES
user_id=71618

your patch was applied to the cvs trunk, thanks!


Date: 2003-06-16 20:24
Sender: davidfa

Logged In: YES
user_id=76683

Modified patch to include comment, as per recommendation
by Vadim.


Attached Files ( 2 )

Filename Description Download
opengl_msw_link.patch Patch file Download
opengl_msw_link_2.patch Replacement Patch file Download

Changes ( 5 )

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