Newbie: Linker error
Hi!
I''ve defined a variable pi in one header file. Several other
headers are accessing this var. But when I compile it, I get
a linker error which says that pi is already defined in my
main.obj, which also uses pi. What do I have to do?
Thanks
LaBas
Take a look at the Multiple cpps thread. We discussed of such problems extensively (look for the "extern" keyword parts).
EL
----------------------------------------
"Inash neteia haeg joa kavari quilm..." SD4
EL
----------------------------------------
"Inash neteia haeg joa kavari quilm..." SD4
----------------------------------------"Inash neteia haeg joa kavari quilm..." SD4
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement