From: Andres R. <and...@ho...> - 2002-01-25 03:20:45
|
Ok, in MSVC 6, how do I set up GLUT so that it WORKS? which folders to the headers, dll's and libs go to, and do I need to do = something inside MSVC? like mess with parsing or something? |
From: Kevin M. <ke...@vr...> - 2002-01-25 03:25:12
|
I typically do this: put the glut.h into your msvc++ include\GL\ directory put the glut.lib into your msvc++ lib\ directory put the glut.dll into your c:\windows\system directory This effectively installs glut for use by visual studio. you'll probably see that your other opengl stuff (that comes with VC++) is in similar places: include\GL\gl.h include\GL\glu.h lib\glu32.lib lib\OpenGL32.lib Where the root dir is on your system depends on where you installed msvc++ to... if all else fails, just do a file search for glu.h and you'll find where to put your headers. @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- On Thu, 24 Jan 2002, Andres Reinot wrote: > Ok, in MSVC 6, how do I set up GLUT so that it WORKS? > which folders to the headers, dll's and libs go to, and do I need to do something inside MSVC? like mess with parsing or something? > |
From: Andres R. <and...@ho...> - 2002-01-25 03:34:46
|
alright, I'm now getting this error: LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 does this have anything to do with the GLUT libraries? And where's the source for the square example we did today? |
From: Ben S. <bs...@vr...> - 2002-01-25 03:37:33
|
ahh, you probably created a new win32 project in VC++. Projects created in that manner actually start in the function WinMain( ... ) instead of main( ... ). the easiest way to fix this is to create a new "win32 console" project that will use main( ... ). cheers, ----- Ben Scott President ISU Game Developers Club Treasurer ISU Ballroom Dance Company bs...@ia... On Thu, 24 Jan 2002, Andres Reinot wrote: > alright, I'm now getting this error: > > LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol > _WinMain@16 > does this have anything to do with the GLUT libraries? > > And where's the source for the square example we did today? > > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |
From: Ben S. <bs...@vr...> - 2002-01-25 03:40:03
|
on the other hand, you could just add this code to your current project: #ifdef _WIN32 #ifndef _CONSOLE int WINAPI WinMain( HINSTANCE instance, HINSTANCE prevInstance, LPSTR commandLine int showCommand ) { return main( __argc, __argv ); } ----- Ben Scott President ISU Game Developers Club Treasurer ISU Ballroom Dance Company bs...@ia... On Thu, 24 Jan 2002, Ben Scott wrote: > ahh, you probably created a new win32 project in VC++. Projects created in > that manner actually start in the function WinMain( ... ) instead of > main( ... ). > > the easiest way to fix this is to create a new "win32 console" project > that will use main( ... ). > > cheers, > ----- > Ben Scott > President ISU Game Developers Club > Treasurer ISU Ballroom Dance Company > bs...@ia... > > On Thu, 24 Jan 2002, Andres Reinot wrote: > > > alright, I'm now getting this error: > > > > LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol > > _WinMain@16 > > does this have anything to do with the GLUT libraries? > > > > And where's the source for the square example we did today? > > > > > > > > _______________________________________________ > > ISUGameDev-devel mailing list > > ISU...@li... > > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > > > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |
From: Ben S. <bs...@vr...> - 2002-01-25 04:28:12
|
oops, that code is missing the #endifs. it should really be: #ifdef _WIN32 #ifndef _CONSOLE int WINAPI WinMain( HINSTANCE instance, HINSTANCE prevInstance, LPSTR commandLine int showCommand ) { return main( __argc, __argv ); } #endif // ! _CONSOLE #endif // _WIN32 ----- Ben Scott President ISU Game Developers Club Treasurer ISU Ballroom Dance Company bs...@ia... On Thu, 24 Jan 2002, Ben Scott wrote: > on the other hand, you could just add this code to your current project: > > #ifdef _WIN32 > #ifndef _CONSOLE > > int WINAPI WinMain( > HINSTANCE instance, > HINSTANCE prevInstance, > LPSTR commandLine > int showCommand ) > { > return main( __argc, __argv ); > } > > ----- > Ben Scott > President ISU Game Developers Club > Treasurer ISU Ballroom Dance Company > bs...@ia... > > On Thu, 24 Jan 2002, Ben Scott wrote: > > > ahh, you probably created a new win32 project in VC++. Projects created in > > that manner actually start in the function WinMain( ... ) instead of > > main( ... ). > > > > the easiest way to fix this is to create a new "win32 console" project > > that will use main( ... ). > > > > cheers, > > ----- > > Ben Scott > > President ISU Game Developers Club > > Treasurer ISU Ballroom Dance Company > > bs...@ia... > > > > On Thu, 24 Jan 2002, Andres Reinot wrote: > > > > > alright, I'm now getting this error: > > > > > > LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol > > > _WinMain@16 > > > does this have anything to do with the GLUT libraries? > > > > > > And where's the source for the square example we did today? > > > > > > > > > > > > _______________________________________________ > > > ISUGameDev-devel mailing list > > > ISU...@li... > > > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > > > > > > > > > _______________________________________________ > > ISUGameDev-devel mailing list > > ISU...@li... > > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > > > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |
From: Kevin M. <ke...@vr...> - 2002-01-25 03:38:55
|
I generally make a "new console project" from the new menu. then simply add glut.lib OpenGL32.lib glu32.lib to the libs tab of the project/settings menu... I've not seen the error you're getting... Maybe you are compiling a 16 bit windows application? It is expecting WinMain, which you don't need in a console app, but you do need in a Win32 app... but winmain16 seems funny, like you made a 16 bit project or something... Try recreating your project and see if that works... @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- On Thu, 24 Jan 2002, Andres Reinot wrote: > alright, I'm now getting this error: > > LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol > _WinMain@16 > does this have anything to do with the GLUT libraries? > > And where's the source for the square example we did today? > > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |
From: Chad A. <ae...@ae...> - 2002-01-25 19:53:25
|
FYI, The @16 means there are 16 bytes of arguments (four, at four bytes each). It's the way __stdcall mangles things by default. > but winmain16 seems funny, like you made a 16 bit project or something... > > > _WinMain@16 |
From: Kevin M. <ke...@vr...> - 2002-01-25 03:35:07
|
In addition, you'll need to add glut.lib OpenGL32.lib Glu32.lib to your libs in the VC++ project settings... @--@---@---@----@-----@------@------@-----@----@---@---@--@ Kevin Meinert __ _ __ http://www.vrac.iastate.edu/~kevn \ || \| \ / ` Virtual Reality Applications Center \ ||.-'|--\ Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, ----------------------------------------------------------- On Thu, 24 Jan 2002, Kevin Meinert wrote: > > I typically do this: > > put the glut.h into your msvc++ include\GL\ directory > put the glut.lib into your msvc++ lib\ directory > put the glut.dll into your c:\windows\system directory > > This effectively installs glut for use by visual studio. > > > you'll probably see that your other opengl stuff (that comes with VC++) is > in similar places: > > include\GL\gl.h > include\GL\glu.h > lib\glu32.lib > lib\OpenGL32.lib > > > Where the root dir is on your system depends on where you installed msvc++ > to... if all else fails, just do a file search for glu.h and you'll find > where to put your headers. > > @--@---@---@----@-----@------@------@-----@----@---@---@--@ > Kevin Meinert __ _ __ > http://www.vrac.iastate.edu/~kevn \ || \| \ / ` > Virtual Reality Applications Center \ ||.-'|--\ > Howe Hall, Iowa State University, Ames Iowa \|| \| \`__, > ----------------------------------------------------------- > > On Thu, 24 Jan 2002, Andres Reinot wrote: > > > Ok, in MSVC 6, how do I set up GLUT so that it WORKS? > > which folders to the headers, dll's and libs go to, and do I need to do something inside MSVC? like mess with parsing or something? > > > > > _______________________________________________ > ISUGameDev-devel mailing list > ISU...@li... > https://lists.sourceforge.net/lists/listinfo/isugamedev-devel > |