build error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfgang Rueckert

    build error

    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 externalProgram m::function(som e 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!!!



  • Victor Bazarov

    #2
    Re: build error

    "Wolfgang Rueckert" <rueckert@mrt.u ka.de> wrote...[color=blue]
    > i've got a linker problem with my VC++ 6.0.
    > my programm compiles normally, but at linking time i get this error[/color]
    message[color=blue]
    >
    > myProgramm.obj : error LNK2001: unresolved external symbol "public:
    > returnType __thiscall externalProgram m::function(som e 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.[/color]

    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.publi c.vc.language first.

    Victor


    Comment

    • Samuele Armondi

      #3
      Re: build error


      "Wolfgang Rueckert" <rueckert@mrt.u ka.de> wrote in message
      news:bdpc8u$gjb $1@news.rz.uni-karlsruhe.de...[color=blue]
      > 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[/color]
      message[color=blue]
      >
      > myProgramm.obj : error LNK2001: unresolved external symbol "public:
      > returnType __thiscall externalProgram m::function(som e 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!!!
      >
      >
      >[/color]
      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


      Comment

      Working...