so to fix this compilation error in tfs 0.4 r3884 on debian 8:
you have to add and now is the question because both options work
I can use -lpthread and compile fine
with -pthread also compiles fine
and another thing where to put it exactly?
it works fine with AM_CXXFLAGS = in Makefile.am but also no problems when I add it to CXXFLAGS = in Makefile.am
also adding it to configure.ac in LIBS="$LIBS $XML_LIBS" is also a working option
so there are many combinations and I'm confused
so should I use -lpthread or -pthread ?
and where exactly I should add it?
Code:
/usr/bin/ld: connection.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
I can use -lpthread and compile fine
with -pthread also compiles fine
and another thing where to put it exactly?
it works fine with AM_CXXFLAGS = in Makefile.am but also no problems when I add it to CXXFLAGS = in Makefile.am
also adding it to configure.ac in LIBS="$LIBS $XML_LIBS" is also a working option
so there are many combinations and I'm confused
so should I use -lpthread or -pthread ?
and where exactly I should add it?
Last edited: