DCCoolBreeze
Programmer
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?
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?