View Full Version : GLUT and lcc-Win32 / Mingw
The_V|k|ng
03-20-2002, 08:50 AM
Heya guys!
Meanwhile I am sick of trying to find out how to kick the console window with Borland FreeBCC 5.5 using GLUT and I do not have VC++, so the pragma is not an option for me.
marcus256 told me how to kick the console window with lcc and Mingw, however, I didnt manage to compile a simple Redbook program so far. SO does anyone know how to set up GLUT with lcc or Mingw? Or does anyone know where to find a tutorial for those compilers?
Again thanx in advance!
The_V|k|ng
chowe6685
03-20-2002, 09:09 AM
Before you ditch BCC try replacing
void main()...
with
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
and compile with the -tW option
you may have tried this already, but I don't know why it wouldn't work
The_V|k|ng
03-20-2002, 09:43 AM
Maybe Im making just some stupid mistake, but replacing
void main()
by
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
causes a declaration syntax error in exactly the WinMain-line...
Besides, what parameters do I hand to glutInit()? Like this
glutInit(lpCmdline, nCmdShow) ?
Thank you for you reply! And even thanx for further ones...! http://www.opengl.org/discussion_boards/ubb/smile.gif
The_V|k|ng
mccloed
03-20-2002, 11:30 AM
Is it possible to get Glut to work with BC++5.5. I tried and have had no luck. I get alot of linker errors. I've also tried it with Bloodshed, because it has a nice IDE, and I can't get anything to work there either.
nexusone
03-20-2002, 11:35 AM
I used Lcc to compile my Opengl programs, I compile as a windows application. Now when creating a new project, I unselect create a skeletin, and have a base .C file that I use to start all projects.
Here is a good Lcc support site: http://www.geocities.com/SiliconValley/Station/1177/index.html
Originally posted by The_V|k|ng:
Heya guys!
Meanwhile I am sick of trying to find out how to kick the console window with Borland FreeBCC 5.5 using GLUT and I do not have VC++, so the pragma is not an option for me.
marcus256 told me how to kick the console window with lcc and Mingw, however, I didnt manage to compile a simple Redbook program so far. SO does anyone know how to set up GLUT with lcc or Mingw? Or does anyone know where to find a tutorial for those compilers?
Again thanx in advance!
The_V|k|ng
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.