build error

W

Wolfgang Rueckert

hey folks,

i've got a linker problem with my VC++ 6.0.
my programm compiles normally, but at linking time i get this error message

myProgramm.obj : error LNK2001: unresolved external symbol "public:
returnType __thiscall externalProgramm::function(some parameters)"

that you find _so often_ on the web and in the faq's and news groups. i'm
SURE i included all important files and path.
has anybody a solution, or might anybody tell me what the __thiscall might
do? i didn't understand the ms help on this subject.

thanx a lot!!!
 
V

Victor Bazarov

Wolfgang Rueckert said:
i've got a linker problem with my VC++ 6.0.
my programm compiles normally, but at linking time i get this error message

myProgramm.obj : error LNK2001: unresolved external symbol "public:
returnType __thiscall externalProgramm::function(some parameters)"

that you find _so often_ on the web and in the faq's and news groups. i'm
SURE i included all important files and path.
has anybody a solution, or might anybody tell me what the __thiscall might
do? i didn't understand the ms help on this subject.

IIRC, __thiscall means it's a non-static member function.

Linker errors are compiler-specific and most likely mean you
either do not have a definition of some symbol you're accessing
or you have too many of that. You should never be sure you've
included "all important files and path" if it tells you that
something is missing. Check again. If it insists on your error
and you don't know what to do, post to a Visual C++ newsgroup.
Try microsoft.public.vc.language first.

Victor
 
S

Samuele Armondi

Wolfgang Rueckert said:
hey folks,

i've got a linker problem with my VC++ 6.0.
my programm compiles normally, but at linking time i get this error message

myProgramm.obj : error LNK2001: unresolved external symbol "public:
returnType __thiscall externalProgramm::function(some parameters)"

that you find _so often_ on the web and in the faq's and news groups. i'm
SURE i included all important files and path.
has anybody a solution, or might anybody tell me what the __thiscall might
do? i didn't understand the ms help on this subject.

thanx a lot!!!
Most likely you have called a function which you haven't defined yet, i.e.
class test
{
private:
int i;
int k;
public:
test();
f();
};
test::test() : i(0), k(0)
{
f(); // Calling f() which hasn't been defined yet
}

HTH,
S. Armondi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top