![]() |
|
#1
|
|||
|
|||
C++ Linker errorsCPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
I get the following error.. i have tried everything >tabDisp.obj : error LNK2005: "public: __thiscall Lista::Lista(void)" (??0Lista@@QAE@XZ) already defined in Lista.obj 1>tabDisp.obj : error LNK2005: "public: __thiscall Lista::~Lista(void)" (??1Lista@@QAE@XZ) already defined in Lista.obj 1>tabDisp.obj : error LNK2005: "public: void __thiscall Lista::insereEquipa(char * const,char * const)" (?insereEquipa@Lista@@QAEXQAD0@Z) already defined in Lista.obj 1>C:\Users\Rui Jorge\Documents\Visual Studio 2010\Projects\Tabalho Pratico Eda\Debug\Tabalho Pratico Eda.exe : fatal error LNK1169: one or more multiply defined symbols found |
|||
|
#2
|
|||
|
|||
Re: C++ Linker errorsQuote:
So: How about showing us the infamous "Lista.h" ??? How about "tabDisp.h" Does either of them have function implementations (or other variable definitions) outside the class definition? Or do you have a separate "Lista.cpp" file? Or what? What are the names of the files that you posted? Are they separate cpp files in the project? Or what? Regards, Dave __________________
Sometimes I just can't help myself... |
|
#3
|
|||
|
|||
Re: C++ Linker errorsHiii i have solved the problem..
just in case it might help someone Lista.h: CPP / C++ / C Code:
tabDisp.h : CPP / C++ / C Code:
My team mate had put #include "Lista.cpp" instead of #include "Lista.h" on the "tabDisp.h" So it was including "Lista.h" twice ... Because inside the "Lista.cpp" there is already an #include "Lista.h" Thank you for your attention |
Recent GIDBlog
Running Linux Programs at Boot Time by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linker Error --Noob | aspirant | FLTK Forum | 7 | 23-Jun-2011 01:48 |
| Winnt.h errors | anandcta1234 | MS Visual C++ / MFC Forum | 1 | 13-Apr-2011 07:19 |
| Effective tool for run-time errors and memory leaks detection | Jean46 | MS Visual C++ / MFC Forum | 2 | 08-Dec-2010 11:13 |
| Wierd errors (again) | crystalattice | C++ Forum | 3 | 15-Aug-2004 20:02 |
| Can somebody look at this and point out any errors to me | soulfly | C Programming Language | 7 | 31-Mar-2004 09:45 |
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The