build error

Discussion in 'C++' started by Wolfgang Rueckert, Jun 30, 2003.

  1. 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!!!
     
    Wolfgang Rueckert, Jun 30, 2003
    #1
    1. Advertising

  2. "Wolfgang Rueckert" <> wrote...
    > 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
     
    Victor Bazarov, Jun 30, 2003
    #2
    1. Advertising

  3. "Wolfgang Rueckert" <> wrote in message
    news:bdpc8u$gjb$-karlsruhe.de...
    > 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
     
    Samuele Armondi, Jun 30, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vagif Abilov
    Replies:
    2
    Views:
    575
    Vagif Abilov
    Jul 7, 2004
  2. Pedro Mir
    Replies:
    2
    Views:
    443
    Winista
    Jun 20, 2006
  3. Nicolas Lehuen
    Replies:
    3
    Views:
    721
    Nicolas Lehuen
    Jan 28, 2004
  4. Toon Knapen
    Replies:
    2
    Views:
    363
    Toon Knapen
    May 17, 2006
  5. Guest
    Replies:
    6
    Views:
    14,180
    Sravani
    May 19, 2012
Loading...

Share This Page