Skip to main content
GameDev.net gamedev.net
🔒 Locked

Compiling OpenGL

Started by GBates31 Aug 23, 2000 at 8:49 AM 4 replies 550+ views
Original Post
GBates31
GBates31
Do I need Visual C++ to compile OpenGL? I''ve been using the free Borland compiler to try and compile OpenGL sources but it never works! It''s freakin me out man!
-Damnit Boy, have you been eating paint chips again?-Paint chips? Oh you mean "wall candy"?
Galileo430
Galileo430
It should work as long as...

You must include
windows.h and it''s libs, opengl32.lib for gl.h, glu32.lib for glu.h, glaux.lib for glaux.h


------------------------------------------------------------
I wrote the best video game ever, then I woke up...

Grandus.Com
------------------------------------------------------------I wrote the best video game ever, then I woke up...
adasilva
adasilva
quote:
Original post by Galileo430
Grandus.Com


Dear Colleagues,
If someone knows how can I use a similar parameter as argc, argv in Visual C++ 4.2, please tell me.
I believe that In VC++ we can''t use as you show:

void main( char* argv[], int argc)
{glutInit(&argc,argv);
}

But the program works only with the standard WinMain:

int WINAPI WinMain( HINSTANCE hInstance, // Instance
HINSTANCE hPrevInstance, // Previous Instance
LPSTR lpCmdLine, // Command Line Parameters
int nCmdShow) // Window Show State

And it always doesn''t give me the parameters argv and argc, which I
need.
Kind regards,
Adasilva




Quantum
Quantum
lpCmdLine is an LPSTR .. its a string containing the parameters seperated by a space.. i think

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.