On Wed, 2008-01-23 at 23:21 +0100, René 'Necoro' Neumann wrote:
> > - In what way does the C++ version not work ?
> > - What is "a C++ one" ? Is this the same source but compiled with the
> >   arm-wince-mingw32ce-g++ compiler ?
> 
> I changed the example to use iostreams / fstreams. Compiling the
> C-source with g++ worked fine...
> 
> > - Which version of our source are you using ? (Is the source the current
> >   SVN version, or some other ?) Which binary ?
> 
> source: 0.51-tag (so _not_ trunk)
> binary: 0.51
> 
> > 
> >> So my question is: What is the task of this DLLs? - Are they needed? -
> >> Or is there no problem in not installing them?
> > 
> > Which DLL ?
> mandriva-cegcc-mingw32ce-c++dlls-0.51.0.tar.gz resp.
> build-mingw32ce-dlls.sh :)

Ok. Those files should cause the arm-wince-mingw32ce-g++ to pick up the
libstdc++ DLL (and the libsupc++ DLL). If you have these on your build
host (your PC), then the resulting exe will be much smaller than before.

Here's an example :
dannypc: {101} make
arm-wince-mingw32ce-g++ -static -o fs.exe fibo.C
arm-wince-mingw32ce-g++ -o fd.exe fibo.C
dannypc: {102} l -tr
total 963
-rw-rw-r-- 1 danny backx    146 Jan 24 16:11 Makefile
-rw-rw-r-- 1 danny backx    654 Jan 24 16:12 fibo.C
-rwxrwxr-x 1 danny backx 967041 Jan 24 16:13 fs.exe
-rwxrwxr-x 1 danny backx  10466 Jan 24 16:13 fd.exe
dannypc: {103} 

Stripping further brings this down to :
-rwxrwxr-x 1 danny backx 545280 Jan 24 16:13 fs.exe
-rwxrwxr-x 1 danny backx   4096 Jan 24 16:13 fd.exe

While on that subject, the DLLs from the distribution you mention are
unstripped. They still work, at least they do so on my PDA, when you
strip them with arm-wince-mingw32ce-strip.

Obviously to run fd.exe you need the DLLs it uses. You can inspect that
e.g. as follows :

dannypc: {110} arm-wince-mingw32ce-objdump -x fd.exe | fgrep DLL
 vma:            Hint    Time      Forward  DLL       First
        DLL Name: COREDLL
        DLL Name: libstdc++-6.dll
dannypc: {111} arm-wince-mingw32ce-objdump -x fs.exe | fgrep DLL
 vma:            Hint    Time      Forward  DLL       First
        DLL Name: coredll.dll
        DLL Name: COREDLL

With this knowledge, do you still have problems ?

        Danny

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to