Results 1 to 3 of 3

Thread: Impossible g++ static library linking error (Bug?)

  1. #1
    Join Date
    Sep 2017
    Beans
    12

    Exclamation Impossible g++ static library linking error (Bug?)

    See the makefile and the make output (below the makefile code)




    cannot find -ltest

    Please tell me how is this possible. Everything is in the same directory.

    Thanks

  2. #2
    Join Date
    Sep 2017
    Beans
    12

    Re: Impossible g++ static library linking error (Bug?)

    rename test.a to libtest.a and use -test

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Impossible g++ static library linking error (Bug?)

    Should the library be named libtest.a?
    If you don't want to name it that, then the -l argument needs to have the patch and full name.

Tags for this Thread

Bookmarks

Posting Permissions

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