'Symbol referencing error' while compiling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aeo3
    New Member
    • Jul 2007
    • 29

    'Symbol referencing error' while compiling

    fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status
    make: *** [compile] Error 1
    This problem appears when i am trying to make an application, but i don't know how to solve it i think it related to library path.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    As this was posted in the Articles section, I have moved it to the forum. In the future, please post your questions here.

    Also, look at this, as it requests you not double/triple post, use good thread titles, post in the forums section, etc... and explains the consequences for not following the rules. Thanks!

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by aeo3
      fatal: Symbol referencing errors. No output written to a.out
      collect2: ld returned 1 exit status
      make: *** [compile] Error 1
      This problem appears when i am trying to make an application, but i don't know how to solve it i think it related to library path.
      Collect2 is the actual linker doing all the hard work; ld is just the front end. Are
      you sure no other error diagnostics are printed before that "fatal" message?

      If all else fails, make a "clean build", i.e. throw away your .o and (optionally) .a
      files as well as your (also optional) .so files and build again. Only do this if all
      else fails. First check what collect2 really tried to tell you.

      kind regards,

      Jos

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        And please have a look at your PM's at the top right of the page.

        Comment

        • aeo3
          New Member
          • Jul 2007
          • 29

          #5
          there is an error message before:
          undefined first reference
          symbol in file
          prng_new /var/tmp/CC3q8e95.0
          I am trying to delete all *.o by using
          clean:
          rm *.o *.dta
          but the same message appears

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            aeo3-

            Please check your PMs.

            This is your last warning.

            Comment

            Working...