PDA

View Full Version : tiling getting error C3861



megaman21
03-26-2010, 08:20 AM
Hi Im new to the forum and new to OpenGL. So im doing a tilemap tutorial: http://swiftless.com/tutorials/opengl/tiling.html and I keep getting these errors. I thought it was that it was having trouble with finding glut but ive gone over the installation of it several times and it all seems fine.

thankyou


1>------ Build started: Project: Game, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(43) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : see declaration of 'fopen'
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(100) : warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(100) : warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(128) : error C3861: 'glutSwapBuffers': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(140) : error C3861: 'glutInit': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(141) : error C2065: 'GLUT_DOUBLE' : undeclared identifier
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(141) : error C3861: 'glutInitDisplayMode': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(142) : error C3861: 'glutInitWindowSize': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(143) : error C3861: 'glutInitWindowPosition': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(144) : error C3861: 'glutCreateWindow': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(145) : error C3861: 'glutDisplayFunc': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(146) : error C3861: 'glutIdleFunc': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(147) : error C3861: 'glutReshapeFunc': identifier not found
1>c:\users\henry\documents\visual studio 2008\projects\game\game\main.cpp(153) : error C3861: 'glutMainLoop': identifier not found
1>Build log was saved at "file://c:\Users\henry\Documents\Visual Studio 2008\Projects\Game\Game\Debug\BuildLog.htm"
1>Game - 11 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Ilian Dinev
03-26-2010, 09:34 AM
Somehow you missed to include
#include <GL/glut.h>

megaman21
03-26-2010, 11:15 AM
ok I fixed it I think, or progressed anyway, but now I have these errors, can any1 help??


1>------ Build started: Project: Game, Configuration: Debug Win32 ------
1>Linking...
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fclose already defined in LIBCMT.lib(fclose.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fread already defined in LIBCMT.lib(fread.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fopen already defined in LIBCMT.lib(fopen.obj)
1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>c:\Users\henry\Documents\Visual Studio 2008\Projects\Game\Debug\Game.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Users\henry\Documents\Visual Studio 2008\Projects\Game\Game\Debug\BuildLog.htm"
1>Game - 7 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

megaman21
03-26-2010, 11:45 AM
ok i fixed it peeps