Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot solve "multiply-defined" Error

Status
Not open for further replies.

DCCoolBreeze

Programmer
Jul 25, 2001
208
US
I am unable build a program because I am getting a `DwString::~DwString()` multiply-defined error. I am working in DYNIX/ptx v4.5.1 using c++ v5.2.5.

First I build 3 libraries...

$(DEV_DIR)/libmimepp_core.a : $(DEV_DIR) $(DEV_CORE_OBJS)
$(CXX) -xar -o $(DEV_DIR)/libmimepp_core.a $(DEV_CORE_OBJS)

$(DEV_DIR)/libmimepp_util.a : $(DEV_DIR) $(DEV_UTIL_OBJS)
$(CXX) -xar -o $(DEV_DIR)/libmimepp_util.a $(DEV_UTIL_OBJS)

$(DEV_DIR)/libmimepp_net.a : $(DEV_DIR) $(DEV_NET_OBJS)
$(CXX) -xar -o $(DEV_DIR)/libmimepp_net.a $(DEV_NET_OBJS)

I get a "relink" notification but the libraries do build so
Now I try to build the application...

.../mimepp/examples/pop-> make pop_ex
c++ -c -g -I../../src pop_ex.cpp
c++ -g -o pop_ex pop_ex.o -I../../src -L../../dev
-lmimepp_net -lmimepp_core
ld: ../../dev/libmimepp_net.a(protocol.o): fatal error: symbol`DwString::~DwString()` multiply-defined, also in file pop_ex.o
c++: Fatal Error: Link failed

All header files contain #define "header symbol" statements.

Can anyone help?
 
Hi DC,

Have you asked your question in the C Programming forum here on TT? Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top