Click here to Skip to main content
15,907,395 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i let the user to edit text in the flex grid control Pin
Alton Williams6-Jun-04 7:41
Alton Williams6-Jun-04 7:41 
Generaldetect sd card/flash card Pin
bryce2-Jun-04 20:35
bryce2-Jun-04 20:35 
QuestionThe character we get.?? Pin
golfbear2-Jun-04 20:07
golfbear2-Jun-04 20:07 
AnswerRe: The character we get.?? Pin
jmkhael2-Jun-04 23:09
jmkhael2-Jun-04 23:09 
AnswerRe: The character we get.?? Pin
John R. Shaw3-Jun-04 0:19
John R. Shaw3-Jun-04 0:19 
GeneralVC6 : new project, keep dialogs Pin
thomas_d772-Jun-04 19:51
thomas_d772-Jun-04 19:51 
GeneralRe: VC6 : new project, keep dialogs Pin
Anthony_Yio2-Jun-04 20:06
Anthony_Yio2-Jun-04 20:06 
GeneralVC++ 6 static library question Pin
Indrawati2-Jun-04 19:08
Indrawati2-Jun-04 19:08 
Hi
I just created a static library using VC++6, and I have successfully compiled the .lib file. But when I tried to use it in my app, I get the following errors:

Linking...
libcpd.lib(ios.obj) : error LNK2005: "public: void __thiscall std::ios_base::clear(int,bool)" (?clear@ios_base@std@@QAEXH_N@Z) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(ios.obj) : error LNK2005: "public: virtual __thiscall std::ios_base::~ios_base(void)" (??1ios_base@std@@UAE@XZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(ios.obj) : error LNK2005: "protected: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@IAEXXZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(ios.obj) : error LNK2005: "protected: void __thiscall std::ios_base::_Init(void)" (?_Init@ios_base@std@@IAEXXZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale0.obj) : error LNK2005: "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int,bool)const " (?_Getfacet@locale@std@@QBEPBVfacet@12@I_N@Z) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale0.obj) : error LNK2005: "public: bool __thiscall std::locale::_Iscloc(void)const " (?_Iscloc@locale@std@@QBE_NXZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale.obj) : error LNK2005: "public: class std::locale & __thiscall std::locale::_Addfac(class std::locale::facet *,unsigned int,unsigned int)" (?_Addfac@locale@std@@QAEAAV12@PAVfacet@12@II@Z) already defined in msvcprtd.lib(MSVCP60D.dll
)
libcpd.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::_Locinfo(char const *)" (??0_Locinfo@std@@QAE@PBD@Z) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(xwctomb.obj) : error LNK2005: __Getcvt already defined in msvcprtd.lib(MSVCP60D.dll)
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(lconv.obj) : error LNK2005: _localeconv already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(fflush.obj) : error LNK2005: _fflush already defined in msvcrtd.lib(MSVCRTD.dll)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCD.lib(mbctype.obj)
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/NNTestLib.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I have tried googline the net for answers, but I couldn't find any help on this. Could someone tell me what I did wrong, and how I can correct it?

Thanks!
GeneralRe: VC++ 6 static library question Pin
Nitzan Shaked2-Jun-04 19:48
Nitzan Shaked2-Jun-04 19:48 
GeneralRe: VC++ 6 static library question Pin
Anonymous2-Jun-04 19:52
Anonymous2-Jun-04 19:52 
GeneralRe: VC++ 6 static library question Pin
Nitzan Shaked2-Jun-04 20:05
Nitzan Shaked2-Jun-04 20:05 
Questionhow to get Client's IP from Soap server Pin
rokiadd2-Jun-04 17:49
rokiadd2-Jun-04 17:49 
QuestionHow can I get a jpeg picture's array of pixels by using GDI+? Pin
pqcyy2-Jun-04 16:32
pqcyy2-Jun-04 16:32 
AnswerRe: How can I get a jpeg picture's array of pixels by using GDI+? Pin
Joe Woodbury2-Jun-04 19:10
professionalJoe Woodbury2-Jun-04 19:10 
GeneralRe: How can I get a jpeg picture's array of pixels by using GDI+? Pin
pqcyy3-Jun-04 16:53
pqcyy3-Jun-04 16:53 
GeneralRe: How can I get a jpeg picture's array of pixels by using GDI+? Pin
Joe Woodbury3-Jun-04 18:43
professionalJoe Woodbury3-Jun-04 18:43 
AnswerRe: How can I get a jpeg picture's array of pixels by using GDI+? Pin
Bo Hunter3-Jun-04 13:44
Bo Hunter3-Jun-04 13:44 
AnswerRe: How can I get a jpeg picture's array of pixels by using GDI+? Pin
pqcyy3-Jun-04 14:35
pqcyy3-Jun-04 14:35 
Generalautoplay droptarget Pin
bryce2-Jun-04 16:14
bryce2-Jun-04 16:14 
GeneralRe: autoplay droptarget Pin
John R. Shaw2-Jun-04 18:31
John R. Shaw2-Jun-04 18:31 
GeneralRe: autoplay droptarget Pin
bryce2-Jun-04 19:02
bryce2-Jun-04 19:02 
GeneralRe: autoplay droptarget Pin
John R. Shaw2-Jun-04 21:45
John R. Shaw2-Jun-04 21:45 
QuestionHow to launch the .job file in VC++ Pin
ErisonWu2-Jun-04 15:27
ErisonWu2-Jun-04 15:27 
AnswerRe: How to launch the .job file in VC++ Pin
jmkhael2-Jun-04 23:05
jmkhael2-Jun-04 23:05 
GeneralRe: How to launch the .job file in VC++ Pin
ErisonWu3-Jun-04 15:29
ErisonWu3-Jun-04 15:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.