Hey, I would like to use directdraw for a graphic library and I have some problems during the compilation of a test program.
That program is here: http://www.maths.univ-evry.fr/pages_perso/vtorri/files/ddraw.cpp it's written for it windows xp, so there are 2 or 3 strings that must be prepended by L the SDK of windows mobile 6 is providing the import lib ddraw.lib I try to compile the program with the following command: arm-wince-cegcc-g++ -o ddraw ddraw.cpp -I. ddraw.lib the result is: collect2: ld terminated with signal 11 [Segmentation fault], core dumped Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import) Info: resolving std::cout by linking to __imp__ZSt4cout (auto-import) /home/torri/local/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/bin/ld: warning: ddraw.lib(DDRAW.dll): local symbol `.idata$4' has no section /home/torri/local/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/bin/ld: warning: ddraw.lib(DDRAW.dll): local symbol `.idata$4' has no section /home/torri/local/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/bin/ld: warning: auto-importing has been activated without --enable-auto-import specified on the command line. This should work unless it involves constant data structures referencing symbols from auto-imported DLLs./home/torri/local/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/bin/ld: Warning: ddraw.lib(DDRAW.dll.b) supports interworking, whereas ddraw does not /tmp/cc28UJzg.o:ddraw.cpp:(.text+0x2a8): undefined reference to `AdjustWindowRect' /home/torri/local/opt/cegcc/lib/gcc/arm-wince-cegcc/4.1.0/../../../../arm-wince-cegcc/bin/ld: warning: ddraw.lib(DDRAW.dll.b): local symbol `.idata$4' has no section indeed, when I try to look at the symbols with nm, I get: DDRAW.dll: 00000000 i .idata$2 00000000 i .idata$4 00000000 i .idata$5 00000000 i .idata$6 005d0fb1 a @comp.id 00000000 I __IMPORT_DESCRIPTOR_DDRAW U __NULL_IMPORT_DESCRIPTOR UDDRAW_NULL_THUNK_DATA DDRAW.dll: 005d0fb1 a @comp.id 00000000 I __NULL_IMPORT_DESCRIPTOR DDRAW.dll: 005d0fb1 a @comp.id 00000000 IDDRAW_NULL_THUNK_DATA DDRAW.dll: 00000000 I .idata$4 00000000 I .idata$5 00000000 I .idata$6 00000000 T .text 00000000 T DirectDrawCreate U __IMPORT_DESCRIPTOR_DDRAW 00000000 I __imp_DirectDrawCreate DDRAW.dll: 00000000 I .idata$4 00000000 I .idata$5 00000000 I .idata$6 00000000 T .text 00000000 T DirectDrawCreateClipper U __IMPORT_DESCRIPTOR_DDRAW 00000000 I __imp_DirectDrawCreateClipper DDRAW.dll: 00000000 I .idata$4 00000000 I .idata$5 00000000 I .idata$6 00000000 T .text 00000000 T DirectDrawEnumerateEx U __IMPORT_DESCRIPTOR_DDRAW 00000000 I __imp_DirectDrawEnumerateEx so it seems that there are some problems for cegcc tools to correctly deal with the microsoft import lib. Is it normal ? I know that the mingw (desktop) devs provide a static lib for ddraw (and direct3d and opengl too). Would it be possible that a static lib for ddraw (and d3d and ogl) be added for the cegcc (and or mingw32ce) package ? (a bit like what mingw does) thank you Vincent Torri ------------------------------------------------------------------------- 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