Are you sure about compiling for x86_64? Currently i386 is the only supported architecture for ABIv0, and that's what everyone uses, including the distributions.Also there's no libthread.a, only thread.library shared library. You have to include , declare struct Library *ThreadBase, and open/close the library with OpenLibrary()/CloseLibrary().