Skip to main content
gamedev.net
🔒 Locked

Link Errors

Started by Bino Nov 20, 2000 at 3:27 PM 0 replies 300+ views
Original Post
Bino
Bino
I keep getting two link errors when I compile my program: particle.obj : error LNK2005: "struct particles * particle" (?particle@@3PAUparticles@@A) already defined in main.obj Debug/GLLightMove.exe : fatal error LNK1169: one or more multiply defined symbols found does anybody know what the hell this means??? Thanks, Bino
SiCrane
SiCrane
I would guess that in a header file that is included by both the main and particle files, you have a declaration like struct particles * particle; Which causes both object files to export a variable of type struct particles * named particle. You want only one of the object files to do so. Change the declaration to extern struct particles * particle; and in one of the files put struct particles * particle;

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.