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

Thread: Linux Problem

  1. #1
    Join Date
    Oct 2001
    Posts
    745

    Linux Problem

    I have an Archive named LIBPJT.A under linux & dll for it for windows.
    I also have a pjt.h header file.As it contained C-Functions,I used the "Extern c" To call it from the c++ code & it worked fine under windows.


    Under Linux,I put the Library in the path /home/Kohinoor/LIBPJT.A
    The Linker options,I gave as follows:

    LinkOptions= "-L.-L/opt/gcc3/lib -lpthread -lstdc++ -lgcc_s -L/home/Kohinoor -lPJT -oToken_exe"

    But it is showing compile Errors.Is there anything wrong in the LinkOptions or could any one tell the reason..
    Thanks in advance

  2. #2
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    Is it showing compile errors or link errors? Why don't you show
    us the error message so that we can try to help you?

  3. #3
    Join Date
    Oct 2001
    Posts
    745
    Thank you very much For the said help.Iam glad to hear that.Iam about to leave the office. I will need ur help tommorow as Iam compiling a project under Linux & as u know Iam not an Linux Expert
    (This post was about another application which Iam stopping by today.I will be going ahead with it only after the new one gets compiled under linux.)

    Thank u for ur help by the way.

  4. #4
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    Well now I'm confused because I didn't help at all due to lack of
    data. Perhaps you meant this for a different thread?

  5. #5
    Join Date
    Oct 2001
    Posts
    745
    I said Thanks for offering the help

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