Hi Danny, thanks for your answer...
It works with --host=arm but I am getting other (source) errors, so I have skipped this part for now and concentrate now on compiling the GMPlib for Windows Mobile 6.1. My first question is, does this work in general with the current cegcc 0.55, 0.59.1 versions... ? I want to have a DLL of the GMPlib, so that I can use it in my Visual Studio environment.... I have tried it and I am getting pretty far but at the end it still doesn't work.... :( Here my work flow using Ubuntu 9.10 / CEGCC 0.59.1 / Mingw32ce export PATH=$PATH:/home/tobi/Downloads/opt/mingw32ce0.59.1/arm-mingw32ce/bin:/home/ tobi/Downloads/opt/mingw32ce0.59.1/bin alias ld=arm-mingw32ce-ld alias ar=arm-mingw32ce-ar alias ranlib=arm-mingw32ce-ranlib alias cc=arm-mingw32ce-gcc alias c++=arm-mingw32ce-g++ alias cpp=arm-mingw32ce-cpp alias dlltool=arm-mingw32ce-dlltool alias objdump=arm-mingw32ce-objdump alias strip=arm-mingw32ce-strip alias as=arm-mingw32ce-as alias nm=arm-mingw32ce-nm export CC=arm-mingw32ce-gcc export CPP=arm-mingw32ce-cpp export LIBS="-L/home/tobi/Downloads/opt/mingw32ce0.59.1/arm-mingw32ce/lib -I/home/tobi/Downloads/opt/mingw32ce0.59.1/arm-mingw32ce/include" export LIBS_PATH="/usr/local/lib" export LD=arm-mingw32ce-ld export AR=arm-mingw32ce-ar export RANLIB=arm-mingw32ce-ranlib export DLLTOOL=arm-mingw32ce-dlltool export STRIP=arm-mingw32ce-strip export AS=arm-mingw32ce-as export NM=arm-mingw32ce-nm - ./configure --host=arm-mingw32ce --disable-static --enable-shared - make - sudo make install - lib /machine:arm /def:libgmp-3.dll.def to get a lib-file from the DLL - In Visual Studio I link against the generated lib-file -> no compiler/linker errors - Copying the DLL + mingwm10.dll to the emulator When I run the program I get a nice Windows Mobile error message that he is unable to start the program.... :( I did the same workflow using MinGW for building a Windows library and it works without problems... Can someone give me please the correct workflow for building a DLL so that it can be used in Win CE (Windows Mobile).... Cheers, Tobi -----Ursprüngliche Nachricht----- Von: Danny Backx [mailto:danny.ba...@scarlet.be] Gesendet: Samstag, 5. Dezember 2009 19:22 An: Tobi; cegcc-devel@lists.sourceforge.net Betreff: RE: [Cegcc-devel] arm-cegcc/bin/ld: cannot find -lcoredll > ./configure RANLIB=arm-cegcc-ranlib CXX=arm-cegcc-g++ CC=arm-cegcc-gcc > --host=arm-pe-wince CFLAGS="-I/opt/wince/include -mwin32 -DWIN32 > -D_WIN32_WCE=0x0400 -D_WIN32_IE=0x0400 -Wl,--enable-auto-import" LDFLAGS="-L/opt/wince/lib" --prefix=/opt/wince/ WINDRES=arm-cegcc-windres Try --host=arm-cegcc or so, not arm-pe. Also all the individual tool names (CC, WINDRES, ..) should be derived, not specified by you. Danny -- Danny Backx - danny.backx - at scarlet.be ; http://danny.backx.info ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel