Sign in to follow this  

Multiple definition Error :(

This topic is 2057 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]I'm in the[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]process of creating[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]a program[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]to load[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]and display[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]the TGA files[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]and[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]I have these[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]errors[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]when[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]compiling[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]:[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]tgaheader[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]tga[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]uTGAcompare[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]cTGAcompare[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]tgaheader[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]tga[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]uTGAcompare[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- Multiple[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]definition[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]of[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]`[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]cTGAcompare[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]'[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- First[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]here[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]- D:[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]\[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Ivo[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]\[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Programming[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]\C[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]+[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]+\[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Projects\[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]3D[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Anim[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Test\[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Makefile.win[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)][[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Build[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Error][/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]["[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]3D][/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Error 1[/background][/size][/font][/color]

[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]It isn't[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]written,[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]where[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]there is an error[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)], but apparently[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]something has been[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]defined [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]several times[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)].[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]But[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]I checked[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]many times and[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]it turns out that[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]these variables[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]are defined[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]only once [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)].[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Can you help?[/background][/size][/font][/color]
[color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]P. S.[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]I am using the[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]compiler[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]Dev[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]C[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]+[/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)] [/background][/size][/font][/color][color=#333333][font=arial, sans-serif][size=4][background=rgb(245, 245, 245)]+[/background][/size][/font][/color]

Share this post


Link to post
Share on other sites
Are you including the same header file in multiple files ?

You may need to enclose the definitions in the header by a set of directives like so

[CODE]
#if !defined(SOME_CONSTANTE_OF_YOUR_CHOICE)
#define SOME_CONSTANTE_OF_YOUR_CHOICE
// Your definitions here ...
#endif
[/CODE]

Event if those definitions are only found in one file, if the file is included in multiple other files (directly or indirectly), they will be difined multiple times.

I don't know Dev C++ nor the compiler you are using but #pragma once may also work.

I hope this helps. Edited by Laval B

Share this post


Link to post
Share on other sites
[quote name='Laval B' timestamp='1338317195' post='4944400']
*quick version*
[/quote]

If you want the 'long' version you can check out [url="http://en.wikipedia.org/wiki/Include_guard"]Wikipedia (#include guards)[/url].

This is a pretty 'beginners' error? Perhaps you should check out some more C++ books/tutorials to prevent you from making mistakes like this again. (The more you known from the language, the more optimized and clean your code will be. I speak out of experience [img]http://public.gamedev.net//public/style_emoticons/default/wink.png[/img] )

Share this post


Link to post
Share on other sites
We also need to be sure that these are multiple definition and not multiple declaration errors. All the header guards in the world won't prevent the linker crapping out if you declare a variable in a header that is included in more than one translation unit.

Share this post


Link to post
Share on other sites
Sign in to follow this