CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Oct 2001
    Posts
    745

    Linker Errors under Linux

    Iam compiling a project under Linux.Iam giving the following compile & link options.


    compileOPtions = "-o -xc++ -c -w -g -I./inc -D_UNICODE -DM_UNIX"
    LinkOptions = "-Wl,-R/opt/gcc3/lib -L. -L/opt/gcc3/lib -lpthread -lstdc++ -lgcc_s -oToken_exe"

    It compiles,produces the .o file.But Iam getting the following Link Errors.
    Iam sending as attachment a file Pjt.h which contains all the undefined references.

    In my token.cpp contains the main() Func
    & Iam DECLARING #include "PJT.h" there



    /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
    /usr/bin/ld: Dwarf Error: Could not find abbrev number 784.
    obj/Token.o: In function `main':
    obj/Token.o(.text+0x1ed): undefined reference to `pjtOpenStep'
    obj/Token.o(.text+0x1f2): undefined reference to `pjtGetFirst'
    obj/Token.o(.text+0x326): undefined reference to `pjtGetNext'
    obj/Token.o(.text+0x362): undefined reference to `pjtClose'
    collect2: ld returned 1 exit status
    make: *** [Test] Error 1

    could any one help...
    Attached Files Attached Files
    • File Type: h pjt.h (4.2 KB, 72 views)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured