Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple definition error

Status
Not open for further replies.

rhymefree

Programmer
Nov 21, 2002
3
US
Hi All,
I have this problem of multiple definition error when I compile my program under VC++; when I comiple the same program (source files) GCC does not give any such errors. I wil be glad if someone replies me with some helpful information.
Thanks
 
>> error when I compile

need to see the error message we do
 
What is the error? It should tell you what is multiply defined. If it is a function declared in a header file, then you are including the file multiple times. Same thing if it is a global variagble/const. Find out who the culprit is and search on it.

Matt
 
Hi Matt,
Thanks for your reply. The problem is that its a collection of header files and a medium level project ( for some official reasons I can not tell you project details, sorry. ) I have to use this headerfiles in other files to define some functions. Certainly they are not global variables.
Thanks
Best
nagu
 
Hi,

I agree that project details cannot be told,
But errors can be !! Just copy and paste the errors which you are getting..

Latha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top