Danny Backx wrote:
> 
> I just did a small experiment, I was wondering why we don't have a C++
> DLL in the mingw32ce toolset.
> 
> Obviously there's a name problem, if you have a DLL in both worlds, then
> which one will you install on your WinCE device.
> 
> The experiment I did was to use the Makefile in src/cegcc/libstdc++ in
> the mingw32ce world. To my surprise it was not hard to create a DLL with
> that.
> 
> The experiment continues : after a "make install", it appeared to be
> possible to compile and link a simple C++ application using both
> toolsets (arm-wince-mingw32ce-g++ and arm-wince-cegcc-g++), both picked
> up the DLL as expected.
> 
> Both exe files appeared to run with the old (cegcc) libstdc++ DLL, and
> with the new (mingw32ce) DLL. As I said they have the same name so I
> cannot have both on my PDA at the same time.
> 
> What should we do about this ?
> 
> Right now the toolset which you recommend doesn't support the C++ DLL
> and therefore has a disadvantage :-)
> 

You've forgotten about this?
http://www.mail-archive.com/cegcc-devel@lists.sourceforge.net/msg00036.html
http://www.google.pt/search?hs=BaT&q=cegcc+script.sh

There is a script under src/ called script.sh, that does that in a better
way for mingw32ce.  The dll names won't conflict because they will have
a version number on it.  On the desktop cygwin vs mingw also have this
problem.  To solve it generically, on Cygwin they prepend "cyg" on every
system dll.  ld knows about this prefix, and transparently discards it.
Eg: -lstdc++ looks for a cygstdc++ file.  We could also use that feature.

I'll go rename script.sh to build-mingw32ce-dlls.sh to make it more
visible.

Cheers,
Pedro Alves



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to