문제

Windows 용 Chromium (Visual Studio 2008 SP1 사용)을 작성하려고 시도하고 있으며 약 37 개의 오류로 실패합니다. 선택 사항은 다음과 같습니다.

Error   1   error LNK2005: "wchar_t const * const switches::kProcessChannelID" (?kProcessChannelID@switches@@3QB_WB) already defined in ipc.lib(ipc_switches.obj)   common.lib  chrome_dll
Error   2   error LNK2005: "wchar_t const * const switches::kDebugChildren" (?kDebugChildren@switches@@3QB_WB) already defined in ipc.lib(ipc_switches.obj) common.lib  chrome_dll
Error   3   error LNK2005: "wchar_t const * const switches::kIPCUseFIFO" (?kIPCUseFIFO@switches@@3QB_WB) already defined in ipc.lib(ipc_switches.obj)   common.lib  chrome_dll
Error   4   fatal error LNK1169: one or more multiply defined symbols found C:\Users\RCIX\src\chrome\Debug\chrome.dll   1   chrome_dll

이러한 오류는 약 6 개의 프로젝트에서 어떻게 나타나는지에 대한 유일한 오류 유형입니다. 내가 뭘 잘못 했어?

도움이 되었습니까?

해결책

그것은 기호가 두 곳으로 정의되어 있음을 의미합니다. ipc.lib (ipc_switches.obj를 통해) 및 common.lib. 나는 Chromium에 전혀 익숙하지 않지만 Common.lib에 ipc.lib를 통합하고 Chrome_dll 프로젝트는 두 Libs에 연결하려고 노력하고 있다고 생각합니다. 링커 입력에서 IPC.lib를 제거하십시오.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top