link error

가끔 openhaptic library를 쓰다보면 아래와 같은 링크 에러가 날 때가 있다

glutbasecode error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBC.lib(typinfo.obj)
glutbasecode error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBC.lib(typinfo.obj)
glutbasecode warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

아직 문제의 원인은 모르겠지만, 해결책은

프로젝트 속성 -  Linker - Command Line - Additional Options
/FORCE:MULTIPLE

이렇게 주면 된다.
도대체 library는 왜 꼬이는거지? -.-;;

댓글

Designed by JB FACTORY