2 messages in com.mysql.lists.plusplusRe: Win32 + Visual C++| From | Sent On | Attachments |
|---|---|---|
| Martin Bergeron | 31 Mar 2001 16:50 | |
| The Lazy Fox | 01 Apr 2001 04:50 |
| Subject: | Re: Win32 + Visual C++![]() |
|---|---|
| From: | The Lazy Fox (lazy...@foxden.dhs.org) |
| Date: | 04/01/2001 04:50:38 AM |
| List: | com.mysql.lists.plusplus |
hmm, this looks like some library conflict
maybe it helps if you use the single-threaded non-debug c library (you can set that in the code generation item of the C/C++ tab in the project settings)
c ya,
lazyfox
Martin Bergeron wrote:
Thanks for the info... works like a charm without this ugly console! But now, I have a another problem with MFC, at link, I give you the output:
Creating command line "link.exe /nologo /subsystem:windows /incremental:yes /pdb:"Debug/DnD.pdb" /debug /machine:I386 /out:"Debug/DnD.exe" /pdbtype:sept .\Debug\DnD.obj .\Debug\DnDDlg.obj .\Debug\StdAfx.obj .\Debug\DnD.res "..\MySQL++\lib\mysql++.lib" " Linking... msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: virtual __thiscall std::basic_ios >::~basic_ios >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in mysql++.lib(sql_query.obj) ... libcp.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) libcp.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP60D.dll) libcp.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) ... libcp.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) ... LIBC.lib(strtol.obj) : error LNK2005: _strtol already defined in msvcrtd.lib(MSVCRTD.dll) LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj) ... msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBC.lib(mbctype.obj) LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main external symbol _main
----Original Message Follows---- From: The Lazy Fox <lazy...@foxden.dhs.org> To: Martin Bergeron <mber...@hotmail.com> CC: plus...@lists.mysql.com Subject: Re: Win32 + Visual C++, Console vs GUI Date: Sun, 01 Apr 2001 00:31:10 +0200
Hi!
lots of people seem to have this same problem. it can be solved by including winsock.h above mysql++
c:\mysql\include\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd'
c:\mysql\include\mysql_com.h(115) : error C2501: 'SOCKET' : missing storage-class or type specifiers
c:\mysql\include\mysql_com.h(115) : error C2501: 'fd' : missing storage-class or type specifiers
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




