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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redefinition error!!!

Status
Not open for further replies.

cre8orrr

Technical User
May 6, 2002
21
0
0
AU
hi everyone...

the header file is compiled with a compiler gcc-2.95.3-1
i am using microsoft visual c++ v6.0.

the declaration of header file is:
concordance(const int min = 1);

when i am using this declaration in my cpp file
i am getting :redefiniot error"

it works when i am using this:
concordance(const int min);

can somebody tell me if i can make the program run without error using the original declaration (with "=1")
thanks alot
 
if you have a redefinition error that means you are including the function more then once. But, the fact that you change the function to something different tells me that you may have the funciton declared twice. When visual C++ tells you that you have multiple definitions, it should tell you where it was first declared. You can double click that and get to the line. Also, check for the #ifdef and #defines at the beginning of every header file.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top