ACE관련 프로그램 컴파일 오류입니다...
글쓴이: jb0730 / 작성시간: 화, 2013/01/15 - 6:10오후
아래가 Makefile일을 돌렸을떄 나타나는 에러가 나는 부분입니다...
Makefile 에 -lACE 옵션도 들어가 있습니다.
Making all in conf make[1]: Entering directory `/home/globaljnp/hems/park_center/src/hemsd/conf' make[1]: `all'를 위해 할 일이 없습니다 make[1]: Leaving directory `/home/globaljnp/hems/park_center/src/hemsd/conf' make[1]: Entering directory `/home/globaljnp/hems/park_center/src/hemsd' g++ -g -w -o hemsd hemsd.o -L/usr/local/oracle_cli/lib -L/usr/lib -L/usr/local/ssl/lib ../../lib/libhemscenter/libhemscenter.a ../../lib/libhems/libhems.a -lACE -lpthread -lm -lrt ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `HEMSCNTR': /home/globaljnp/hems/park_center/lib/libhemscenter/HEMSCNTR.cpp:18: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(ScheduleUpdate.o): In function `HEMS_CENTER::ScheduleUpdate::handle_timeout(ACE_Time_Value const&, void const*)': /home/globaljnp/hems/park_center/lib/libhemscenter/ScheduleUpdate.cpp:10: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(AcceptorClientImpl.o): In function `AcceptorClientImpl': /home/globaljnp/hems/park_center/lib/libhemscenter/AcceptorClientImpl.cpp:4: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(AcceptorGatewayImpl.o): In function `AcceptorGatewayImpl': /home/globaljnp/hems/park_center/lib/libhemscenter/AcceptorGatewayImpl.cpp:4: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(ClientSvcHandler.o): In function `ClientSvcHandler': /home/globaljnp/hems/park_center/lib/libhemscenter/ClientSvcHandler.cpp:25: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(GatewaySvcHandler.o): In function `GatewaySvcHandler': /home/globaljnp/hems/park_center/lib/libhemscenter/GatewaySvcHandler.cpp:27: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(HemsConsumer.o): In function `HemsConsumer': /home/globaljnp/hems/park_center/lib/libhemscenter/HemsConsumer.cpp:6: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(IHemsOperation.o): In function `HEMS_CENTER::IHemsOperation::RegistClientHandler(HEMS_CENTER::IServiceHandler<ACE_SOCK_Stream, ACE_NULL_SYNCH>*)': /home/globaljnp/hems/park_center/lib/libhemscenter/IHemsOperation.cpp:10: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(packetprocessor.o): In function `PROCESS_connection_establish(HEMS_CENTER::IPacketDef*)': /home/globaljnp/hems/park_center/lib/libhemscenter/packetprocessor.cpp:15: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(packetprocessor_terminal.o): In function `PROCESS_terminal_register(HEMS_CENTER::IPacketDef*)': /home/globaljnp/hems/park_center/lib/libhemscenter/packetprocessor_terminal.cpp:13: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhems/libhems.a(HandlerManager.o): In function `HandlerManager': /home/globaljnp/hems/park_center/lib/libhems/HandlerManager.cpp:9: multiple definition of `_done' hemsd.o:/home/globaljnp/hems/park_center/src/hemsd/hemsd.cpp:4: first defined here ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `HEMS_CENTER::HEMSCNTR::svc_start()': HEMSCNTR.cpp:(.text+0x96c): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' HEMSCNTR.cpp:(.text+0x977): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' HEMSCNTR.cpp:(.text+0x982): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' HEMSCNTR.cpp:(.text+0x9a6): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' HEMSCNTR.cpp:(.text+0x9b5): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o):HEMSCNTR.cpp:(.text+0x9c4): more undefined references to `ACE_Time_Value::~ACE_Time_Value()' follow ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `ACE_Time_Value::ACE_Time_Value(timeval const&)': HEMSCNTR.cpp:(.text._ZN14ACE_Time_ValueC2ERK7timeval[_ZN14ACE_Time_ValueC5ERK7timeval]+0xb): undefined reference to `vtable for ACE_Time_Value' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `ACE_Time_Value::ACE_Time_Value()': HEMSCNTR.cpp:(.text._ZN14ACE_Time_ValueC2Ev[_ZN14ACE_Time_ValueC5Ev]+0xb): undefined reference to `vtable for ACE_Time_Value' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `ACE_Time_Value::ACE_Time_Value(long, long)': HEMSCNTR.cpp:(.text._ZN14ACE_Time_ValueC2Ell[_ZN14ACE_Time_ValueC5Ell]+0xb): undefined reference to `vtable for ACE_Time_Value' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `ACE_Time_Value::ACE_Time_Value(ACE_Time_Value const&)': HEMSCNTR.cpp:(.text._ZN14ACE_Time_ValueC2ERKS_[_ZN14ACE_Time_ValueC5ERKS_]+0x8): undefined reference to `vtable for ACE_Time_Value' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `operator+(ACE_Time_Value const&, ACE_Time_Value const&)': HEMSCNTR.cpp:(.text._ZplRK14ACE_Time_ValueS1_[operator+(ACE_Time_Value const&, ACE_Time_Value const&)]+0x36): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `operator-(ACE_Time_Value const&, ACE_Time_Value const&)': HEMSCNTR.cpp:(.text._ZmiRK14ACE_Time_ValueS1_[operator-(ACE_Time_Value const&, ACE_Time_Value const&)]+0x36): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `ACE_FPointer_Time_Policy::operator()() const': HEMSCNTR.cpp:(.text._ZNK24ACE_FPointer_Time_PolicyclEv[ACE_FPointer_Time_Policy::operator()() const]+0x37): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' HEMSCNTR.cpp:(.text._ZNK24ACE_FPointer_Time_PolicyclEv[ACE_FPointer_Time_Policy::operator()() const]+0x4e): undefined reference to `ACE_Time_Value::~ACE_Time_Value()' ../../lib/libhemscenter/libhemscenter.a(HEMSCNTR.o): In function `ACE_Time_Value_T<ACE_FPointer_Time_Policy>::~ACE_Time_Value_T()':
Forums:
에러는 간략하게 올린내용입니다..
저러한 부분만해서 계속하여서 오류가 나기떄문에 적당부분만 올려놓았습니다.
해결이 되었습니다.....
계속 이상한짓하다가 결국 올렸는데 해결을 했습니다 ㅎㅎ..
댓글 달기