ccrtp-devel
[Top][All Lists]
Advanced

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

AW: [Ccrtp-devel] Problems building ccRtp for win32


From: Steindl Christian
Subject: AW: [Ccrtp-devel] Problems building ccRtp for win32
Date: Mon, 23 Jun 2003 07:55:33 +0200

hi john,
well, i gave up resolving this problem. i set the linker option force and ignored duplicate definition. that was just a workaround. if you have a better solution, please inform me. by the way, now i use the jrtplib2-7 ;-) which compiled failure free on first try on VC++6 and VC++7.
sincerely
chris
 
-----Urspr√ľngliche Nachricht-----
Von: Rose, John [mailto:address@hidden
Gesendet: Freitag, 13. Juni 2003 17:01
An: address@hidden
Betreff: [Ccrtp-devel] Problems building ccRtp for win32

Hi Steindl,
 
Have you ever figured out this link problem with ccRTP?  I get the same errors.
 
John Rose
 
 

From: Steindl Christian
Subject: [Ccrtp-devel] Problems building ccRtp for win32
Date: Wed, 19 Mar 2003 15:21:13 +0100

I tried to build ccrtp-1.0pre2 with VS C++ 6.0.

For that i got following packages:
- commoncpp2-1.0.8
- libxml-2.5.4
- iconv-1.8

Unfortunately i had to do some tricks to get further:
1. there's no <cc++/pointer.h> file so i copied the file template/pointer.h
of the commoncpp package to its cc++ directory.
2. in file src/duplex.cpp(65) showed following error:
{
d:\ccrtp\ccrtp-1.0pre2\src\duplex.cpp(66) : error C2247: 'Error' not
accessible because 'ost::UDPSocket' uses 'public' to inherit from
'ost::Socket'
        d:\ccrtp\commoncpp2-1.0.7\include\cc++\socket.h(513) : see
declaration of 'Error'
d:\ccrtp\ccrtp-1.0pre2\src\duplex.cpp(66) : error C2247: 'Error' not
accessible because 'ost::UDPSocket' uses 'public' to inherit from
'ost::Socket'
        d:\ccrtp\commoncpp2-1.0.7\include\cc++\socket.h(513) : see
declaration of 'Error'
}
so i modified src/sha.cpp(554) from private to public inheritance!
3. project settings modified linking objects: replaced ccgnu2d.dll to
ccgnu2d.lib.

Now there's still a linking problem:
{
Linking...
ccgnu2d.lib(ccgnu2d.dll) : error LNK2005: "public: class ost::Thread &
__thiscall ost::Thread::operator=(class ost::Thread const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj
ccgnu2d.lib(ccgnu2d.dll) : error LNK2005: "public: __thiscall
ost::Mutex::Mutex(class ost::Mutex const &)" (address@hidden@@address@hidden@@Z)
already defined in control.obj
ccgnu2d.lib(ccgnu2d.dll) : error LNK2005: "public: __thiscall
ost::Thread::Thread(class ost::Thread const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj
ccgnu2d.lib(ccgnu2d.dll) : error LNK2005: "public: class ost::Mutex &
__thiscall ost::Mutex::operator=(class ost::Mutex const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj
ccgnu2d.lib(ccgnu2d.dll) : error LNK2005: "public: __thiscall
ost::ThreadLock::ThreadLock(class ost::ThreadLock const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj
ccgnu2d.lib(ccgnu2d.dll) : error LNK2005: "public: class ost::ThreadLock &
__thiscall ost::ThreadLock::operator=(class ost::ThreadLock const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj
ccgnu2d.lib(ccgnu2d.dll) : warning LNK4006: "public: class ost::Thread &
__thiscall ost::Thread::operator=(class ost::Thread const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj; second
definition ignored
ccgnu2d.lib(ccgnu2d.dll) : warning LNK4006: "public: __thiscall
ost::Mutex::Mutex(class ost::Mutex const &)" (address@hidden@@address@hidden@@Z)
already defined in control.obj; second definition ignored
ccgnu2d.lib(ccgnu2d.dll) : warning LNK4006: "public: __thiscall
ost::Thread::Thread(class ost::Thread const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj; second
definition ignored
ccgnu2d.lib(ccgnu2d.dll) : warning LNK4006: "public: class ost::Mutex &
__thiscall ost::Mutex::operator=(class ost::Mutex const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj; second
definition ignored
ccgnu2d.lib(ccgnu2d.dll) : warning LNK4006: "public: __thiscall
ost::ThreadLock::ThreadLock(class ost::ThreadLock const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj; second
definition ignored
ccgnu2d.lib(ccgnu2d.dll) : warning LNK4006: "public: class ost::ThreadLock &
__thiscall ost::ThreadLock::operator=(class ost::ThreadLock const &)"
(address@hidden@@address@hidden@@Z) already defined in control.obj;
second definition ignored
   Creating library Debug/ccrtp1.lib and object Debug/ccrtp1.exp
Debug/ccrtp1.dll : fatal error LNK1169: one or more multiply defined symbols
found
Error executing link.exe.

ccrtp1.dll - 7 error(s), 10 warning(s)
}
How come that thread, mutex etc. things are definied in control.obj ?

Thanks for any help building ccrtp on a win32-platform!
Sincerely
Christian




reply via email to

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