Re: Compiling problems
David Sugar <[email protected]>
| Newsgroups | gmane.comp.gnu.ccrtp.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, it is very important to compile your application with the same flags and library options as Common C++ was built with. If you use pkgconfig, you can use that to extract the correct flags, or you could use the ccgnu2-config program as Federico suggests. Also, many platforms do not directly link with pthread using -lpthread, but instead pass "-pthread" as a special linker flag. From ccgnu2-config you will want "ccgnu2-config --libs --flags" Federico Montesino Pouzols wrote: > The problems seems to be in the pthread related compiling options of > Common C++. Did you get some warning when compiling it? What do you get from 'ccgnu2-config --libs --includes'? > > On Mon, Feb 13, 2006 at 02:38:34AM -0800, juanmms (sent by Nabble.com) wrote: >> When I try to compile I get the following errors: >> >> /usr/local/lib/libccgnu2.a(thread.o)(.text+0x30): In function >> `ost::Thread::enterCancel()': >> /home/scpsms/usuarios/juanmms/commoncpp2-1.3.22/src/thread.cpp:185: >> referencia a `pthread_testcancel' sin definir >> /usr/local/lib/libccgnu2.a(thread.o)(.text+0x55): In function >> `ost::Thread::exitCancel(ost::Thread::Cancel)': >> /home/scpsms/usuarios/juanmms/commoncpp2-1.3.22/src/thread.cpp:202: >> referencia a `pthread_testcancel' sin definir >> /usr/local/lib/libccgnu2.a(thread.o)(.text+0xb5): In function >> `ost::Thread::suspend()': >> /home/scpsms/usuarios/juanmms/commoncpp2-1.3.22/src/thread.cpp:1117: >> referencia a `pthread_kill' sin definir >> /usr/local/lib/libccgnu2.a(thread.o)(.text+0x10a): In function >> `ost::Thread::resume()': >> >> ( ................ ) >> >> And when I try to add the library libpthread, I get the following mistakes: >> >> /usr/lib/libpthread.a(pthread.o)(.text+0x313): In function >> `__pthread_initialize_manager': >> : referencia a `_res' sin definir >> /usr/lib/libpthread.a(pthread.o)(.text+0xb03): In function >> `__pthread_reset_main_thread': >> : referencia a `_errno' sin definir >> /usr/lib/libpthread.a(pthread.o)(.text+0xb13): In function >> `__pthread_reset_main_thread': >> : referencia a `_h_errno' sin definir >> >> ( ......................) >> >> Someone know how can I solve the problem? >> >> Thank you. >> >> -- >> View this message in context: http://www.nabble.com/Compiling-problems-t1113115.html#a2908183 >> Sent from the Gnu - ccRTP - Dev forum at Nabble.com. >> >> >> >> _______________________________________________ >> Ccrtp-devel mailing list >> [email protected] >> http://lists.gnu.org/mailman/listinfo/ccrtp-devel > > > _______________________________________________ > Ccrtp-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/ccrtp-devel _______________________________________________ Ccrtp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/ccrtp-devel
dyfet.vcf
(text/x-vcard, 198 B)
begin:vcard fn:David Sugar n:Sugar;David org:GNU Telephony email;internet:[email protected] tel;work:+1 201 215 2609 x-mozilla-html:FALSE url:http://www.gnutelephony.org version:2.1 end:vcard