Win32 + OpenGL bindings

Vladimir Panteleev vladimir at thecybershadow.net
Sat Apr 20 02:41:28 PDT 2013


On Saturday, 20 April 2013 at 03:26:29 UTC, Diggory wrote:
> - win32.windows:
> Apparantly out of date and gives linker errors, although it 
> does declare all the functions needed.

Is this the ChoosePixelFormat error from your other thread?

If so - you probably need to link your program with gdi32.lib.

You can do this by adding this line to your program (won't work 
with GDC):
pragma(lib, "gdi32");

Or, just add gdi32.lib to the compiler's command line.

If it's some other error - are you using the .lib / .def files 
from the same project? There are some additional import libraries 
files in the repository's "lib" directory.


More information about the Digitalmars-d-learn mailing list