Advertisement

Newbie: Linker error

Started by August 17, 2000 01:06 PM
1 comment, last by LaBasX2 24 years, 3 months ago
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
----------------------------------------"Inash neteia haeg joa kavari quilm..." SD4
Advertisement
Sorry for asking a question that has just been discussed.

Thank you for that hint!

cu
LaBasX2

This topic is closed to new replies.

Advertisement