Hello, > I have attached an bz2 archive with sources you provided and two > "makefile", one for cegcc and the other one for Visual 2005. > Could you please check we are using same compilation flags.
Indeed, I was compiling this way : /opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/cc1 -quiet -D__COREDLL__ -D__MINGW32__ -D__MINGW32CE__ -D__CEGCC_VERSION__ -idirafter ../include/w32api -idirafter ../../include/w32api testDLL.c -quiet -dumpbase testDLL.c -auxbase testDLL -version -o testDLL.s /opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/bin/as -o testDLL.o testDLL.s /opt/mingw32ce/libexec/gcc/arm-wince-mingw32ce/4.1.0/collect2 --shared -Bdynamic -e DllMain -o testDLL.dll testDLL.o -lcoredll These commands come from those printed with arm-wince-mingw32ce-gcc -v -shared -o testDLL.dll testDLL.c. I just simplified a lot the collect2 command to use DllMain as entry point to be sure it always return TRUE. Furthermore, I'm compiling with mingw32ce instead of cegcc. BTW, I tested your binaries and they behave as mine : visuals display "DLL OK" while cegccs display "testDLLexe.exe is not a valid Pocket PC application" (not because testDLL.dll was larger than 64kB (-O3 reduced a lot the code) but because cegcc.dll is 2.6MB). Thanks for your help, -- Jérôme Decoodt ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel