PLEASE HELP !! Link errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cpptutor2000@yahoo.com

    #1

    PLEASE HELP !! Link errors

    Could some C++ guru please help me ? I am using gcc 3.2.3 and I am
    trying to invoke some functions defined in a C file from inside a C++
    class, and I keep getting linker error messages 'undefined reference
    such - such function'. Both the C file and the C++ class are in the
    same directory. Could someone please point out what might be going
    wrong? Any help would be greatly appreciated.

  • Saurabh Bhandari

    #2
    Re: PLEASE HELP !! Link errors

    Try this tutorial. This is probably what u are looking for.



    <cpptutor2000@y ahoo.com> wrote in message
    news:1118965309 .357073.307830@ o13g2000cwo.goo glegroups.com.. .[color=blue]
    > Could some C++ guru please help me ? I am using gcc 3.2.3 and I am
    > trying to invoke some functions defined in a C file from inside a C++
    > class, and I keep getting linker error messages 'undefined reference
    > such - such function'. Both the C file and the C++ class are in the
    > same directory. Could someone please point out what might be going
    > wrong? Any help would be greatly appreciated.
    >[/color]


    Comment

    • Default User

      #3
      Re: PLEASE HELP !! Link errors



      cpptutor2000@ya hoo.com wrote:[color=blue]
      > Could some C++ guru please help me ? I am using gcc 3.2.3 and I am
      > trying to invoke some functions defined in a C file from inside a C++
      > class, and I keep getting linker error messages 'undefined reference
      > such - such function'. Both the C file and the C++ class are in the
      > same directory. Could someone please point out what might be going
      > wrong? Any help would be greatly appreciated.[/color]

      Please review the following, then try again:





      Brian

      Comment

      Working...