How do I include a .h and .c in my project

Sysprogs forums Forums VisualGDB How do I include a .h and .c in my project

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #2496
    theColonel26
    Participant

    in a new library. I am getting this on build, it is a dependency from of the library I am trying to use.

    Warning	1	warning : libpthread.so.0, needed by c:/sysgcc/raspberry/bin/../arm-linux-gnueabihf/sysroot/usr/lib/../lib/libwiringPi.so, not found (try using -rpath or -rpath-link)	c:sysgccraspberryarm-linux-gnueabihfbinld.exe	1	1	C++TestProg
    

    but the file is right there in /lib/arm-linux-gnueabihf/libpthread.so.0 in my sysroot folder

    I have compiled using the same library on the pi and it compiles find.

    #2494
    ket
    Participant

    Hi,

    Others have had similar issues: viewtopic.php?f=5&t=2648

    It can occur due to linker issues or hard-coded dependent library paths coded into the libraries. Try the ideas from the linked thread.
    You could also try to add pthread onto the library list as well even if it is a dependency of a dependency, this sometimes helps.

    #2510
    theColonel26
    Participant

    I added the library to LDFLAGS and it works thanks man

Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.