OpenGL SB5 textures

In the OpenGL SB 5th edition, I managed to figure out how to make the first 4 chapters work, but when I copy and paste the Pyramid.cpp example program into a project, I get a build error. I've created a new empty project and added main.cpp, added freeglut_static.lib and gltools.lib into it, then copied and pasted the code into it and I get these errors.


1>  main.cpp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>main.obj : error LNK2001: unresolved external symbol "signed char * __cdecl gltReadTGABits(char const *,int *,int *,int *,unsigned int *,signed char *)" (?gltReadTGABits@@YAPACPBDPAH11PAIPAC@Z)
1>C:\Users\Ben\Documents\Visual Studio 2010\Projects\textures\Release\textures.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any idea what's causing it and how to fix it?
Last edited on
I think gltReadTGABits is a function that appears elsewhere in the book and you will need that too in your code

(I have OSB3 and that has gltLoadTGA with a similar signature)
No, I just tried that and I still get the same error.
Topic archived. No new replies allowed.