multiple definition of 관련된 질문입니다.
글쓴이: jb0730 / 작성시간: 화, 2013/01/15 - 7:48오후
multiple definition of 이게 헤더파일같은것을 여러곳에서 include해서 나타나는 오류인가요?'
아래와 같은 오류들이 나타남니다.
다른 곳에서 보니까 multiple definition 의 경우 extern?으로 해주어야 한다는데...
어떠한 방식이 되는것인가요...
오류의 내용은 아래와같습니다..
잘부탁드립니다..ㅠㅠ
../../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 collect2: ld returned 1 exit status
Forums:
댓글 달기