|
From: Christian Pogea on 30 Jan 2006 10:40 hi, i'm about to migrate my project from evc4 to visual studio 2005. i fixed the most compiler and linker errors, but i need some help now... i get the following error: Error 8 error LNK2005: "public: __cdecl ATL::CTimeSpan::CTimeSpan(__int64)" (??0CTimeSpan(a)ATL@@QAA@_J@Z) already defined in Menu.obj atlsd.lib i got the same problems for CTime::CTime, CTime::GetCurrentTime, and so on.... i'm sure i didn't define ATL::CTimeSpan in my Menu.cpp. maybe CtimeSpan is defined in another library i have to ignore or anything else. here are me additional dependencies: commctrl.lib coredll.lib Iphlpapi.lib ole32.lib oleaut32.lib cellcore.lib bthutil.lib ignore specific library: $(CENoDefaultLib);oldnames.lib;commctrl.lib;coredll.lib;aygshell.lib;secchk.lib;ccrtrtti.lib i'm using the windows mobile 5.0 sdk thanks in advanced, chris
From: MSenne on 30 Jan 2006 15:09 >From looking at MSDN it appears that CTime is a shared class between ATL and MFC. The linker can't find the ATL library. If you didn't use ATL before then it was probably using the MFC version, which is not linked to in your project either. Maybe that will give you a hint, or maybe I'm way off, but I wish you good luck. -MSenne
From: Christian Pogea on 30 Jan 2006 17:16 i never used atl before, so i think the migration wizard did anything wrong. how can i get rid of all atl stuff in visual studio 2005? "MSenne" <yoat42(a)gmail.com> schrieb im Newsbeitrag news:1138651775.556020.326530(a)z14g2000cwz.googlegroups.com... > >From looking at MSDN it appears that CTime is a shared class between > ATL and MFC. The linker can't find the ATL library. If you didn't use > ATL before then it was probably using the MFC version, which is not > linked to in your project either. > Maybe that will give you a hint, or maybe I'm way off, but I wish you > good luck. > -MSenne >
From: MSenne on 30 Jan 2006 17:57 I checked a project I converted from eVC++ to VS2005 and I think you probably just want to use the ATL stuff, you're probably just excluding the necessary library. I added #include "atltime.h" to a file, added ATL::CTime *ct = new ATL::CTime(); to a function and it built just fine. Here are my project settings: Additional Dependencies: commctrl.lib coredll.lib secchk.lib ccrtrtti.lib Ignore All Default Libraries: No Ignore Specific Library: $(CENoDefaultLib) -MSenne
|
Pages: 1 Prev: Exchanging data in Object Push Profile Next: view contact history details in WM5.0 |