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
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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.