PDA

View Full Version : Texture Mapping..linking error! help..



shehz
11-17-2001, 12:45 PM
Linking...
texture.obj : error LNK2005: "bool __cdecl CreateTextureMap(unsigned int *,char *)" (?CreateTextureMap@@YA_NPAIPAD@Z) already defined in parthenon.obj
Debug/parthenon.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

I dunno what I did wrong ..I included all the necessary files..
any suggestions?

dbugger
11-17-2001, 01:39 PM
Do not post twice

mikael_aronsson
11-18-2001, 11:05 PM
Hi !
Hmmm, I guess you did what the error message says you did http://www.opengl.org/discussion_boards/ubb/biggrin.gif You have defined the function CreateTextureMap twice, one time in
texture.obj and one time in parthenon.obj.

Mikael

dslater
11-19-2001, 08:44 PM
did you intend CreateTextureMap() to be an inline function? is it defined in a header file? If so, that's your problem. You need to either define it in a .cpp file, or you need to add an inline keyword.