help-gplusplus
[Top][All Lists]
Advanced

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

linking problem with multiple definition


From: Warner Chan
Subject: linking problem with multiple definition
Date: Tue, 10 Apr 2001 13:00:48 -0700

Hi,
  I am getting some multiple definitions error while linking a program with
a incremental linked library "libagentclient.a". The definitions seems to
come from gcc library. Am I missing some flags that is need for such
compilation? Below are the error message I got and the compilation option I
used to compile the "libagentclient.a".
Please help...


g++ -g  -o linux.obj/snmpagt linux.obj/snmpagt.o linux.obj/oidl.o
linux.obj/v_snmp.o linux.obj/k_snmp.o linux.obj/mapper.o linux.obj/cmdline.o
/home/wchan/development/snmp15.2.1.7/sadk/../objdir/linux.lib/libsubagent.a
/home/wchan/development/snmp15.2.1.7/sadk/../objdir/linux.lib/libagent.a
/home/wchan/development/snmp15.2.1.7/sadk/../objdir/linux.lib/libemanate.a
/home/wchan/development/snmp15.2.1.7/sadk/../objdir/linux.lib/libpack.a
/home/wchan/development/snmp15.2.1.7/sadk/../objdir/linux.lib/libmibtable.a
/home/wchan/development/snmp15.2.1.7/sadk/../objdir/linux.lib/libsnmp.a
/home/wchan/project/tn1000/devel/osn/idl/lib/client/libagentclient.a  -lorbs
vcs -lTAO
/home/wchan/project/tn1000/devel/osn/idl/lib/client/libagentclient.a: In
function `__pointer_type_info::~__pointer_type_info(void)':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/cp/tinfo2.cc(.init
+0x0): multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here
/home/wchan/project/tn1000/devel/osn/idl/lib/client/libagentclient.a: In
function `__pointer_type_info::~__pointer_type_info(void)':
/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/gcc/../../gcc/cp/tinfo2.cc(.text
+0x0): multiple definition of `_start'


g++ -Wall -o libagentclient.a  -L/home/wchan/development/ACE_wrappers/ace -r
ncabaseC.o ncaequipC.o ncaifC.o ncaportsC.o ncaxconmgrC.o ncacompC.o
ncaequipmgrC.o ncaportmgrC.o ncaxconC.o

Thanks a lot.
Warner




reply via email to

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