4 messages in com.mysql.lists.plusplusR: R: WinCE & mysql++
FromSent OnAttachments
Bastien12 Dec 2007 01:09 
Luigi Grilli12 Dec 2007 01:24 
Bastien12 Dec 2007 02:25 
Luigi Grilli12 Dec 2007 05:33 
Subject:R: R: WinCE & mysql++
From:Luigi Grilli (luig@elmo.it)
Date:12/12/2007 05:33:44 AM
List:com.mysql.lists.plusplus

You need to build the libmysql before the mysqlpp library that depends on the
first. I don't think you will be able to build the libmysql with the wince sdk. You
should try to ask on the mysql forum or mailinglist. Anyway I had similar issue
with other libraries: the Microsoft compiler for wince doesn't support a lot of
features and as you said it generates a lot of errors. I can suggest you to try the dotNET way using the .NET mysql connector: http://lists.mysql.com/announce/453 As you can see it support Compact Framework 2.0. Surely you need to deploy it
with your app. Hope this can help. G

-----Messaggio originale----- Da: Bastien [mailto:bam@nbgid.com] Inviato: mercoledì 12 dicembre 2007 11.26 A: plus@lists.mysql.com Oggetto: Re: R: WinCE & mysql++

I tried to compile libmysql with the Wince5.0 SDK but I get a list of compiling error ( many includes files are missing in the wince sdk ) it seems impossible to compile it easyly for wince. I also tried to compile mysqlpp with the Wince5.0 SDK but same issue, many includes error, I think solving this problem of include would take me many years so I guess there must be a better way.

Basically I can't find any example of programmers using mysql / mysql++ on wince, if it is impossible, I just need to know it to find another way.

Luigi Grilli a écrit :

You have some thighs to do to in order to build a software using mysql and
mysqlpp on wince. 1. Did you built the libmysql.dll for WinCE, that is the "C" library shipped
from mysql? Just a little curios... how? I don't think this is possible... just
tell me if I'm wrong on this. 2. Did you built the mysqlpp.dll for WinCE? 3. How you are building you wince/xp software: static or dynamic link with mfc
or atl?

In my experience with VS2005 on and XP box I could only build my software with a
dynamic link to mysqlpp. No way to static link. My opinion is that this is due
to the fact that a dll using c++ std libraries requires your program that link
to it to be built with the dynamic runtime. Did you had the same conclusion in
you XP box?

-----Messaggio originale----- Da: Bastien [mailto:bam@nbgid.com] Inviato: mercoledì 12 dicembre 2007 10.10 A: plus@lists.mysql.com Oggetto: WinCE & mysql++

Hi,

I just "finnished" a project on winXP & visual 2005 (c++ / mfc dll) using mysql++, and I have now to switch my work to WinCE5.0. All my functionnality have been ported succesfuly to wince, but those using mysql++ do not compile at all. I get (46) linking errors (I link with the mysqlpp.lib as in my Xp's project):

error LNK2019: symbole externe non résolu "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(char const *)" (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAAAAV01@PBD@Z) référencé dans la fonction __unwind$110554 1>clNBGMySQL.obj : error LNK2019: symbole externe non résolu "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator=(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAAAAV01@ABV01@@Z) référencé dans la fonction __unwind$110554

Is it possible to use mysql++ on wince ? do I have something special to do about this ?

Thanks for reading