ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ccrtp-devel] Compiling problems


From: David Sugar
Subject: Re: [Ccrtp-devel] Compiling problems
Date: Tue, 14 Feb 2006 14:48:21 -0500
User-agent: Thunderbird 1.5 (X11/20051201)

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
address@hidden
http://lists.gnu.org/mailman/listinfo/ccrtp-devel


_______________________________________________
Ccrtp-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/ccrtp-devel

Attachment: dyfet.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]