using a lib with "arm-wince-pe-gcc"

Hello,

I'm trying and use "gx.dll" (WinCE DLL). The compiler is "arm-wince-pe-gcc" (it's for a Qtech PocketPC with an Intel XScale).

The compiler came "out of the box" from a website (VLC). I didn't compile anything to get it run. I got the standard WinCE library files (ws2.lib, commctrl.lib, commdlg.lib...) I'd like to use the "gx.dll" : it's a mini-graphic lib (very minimalistic). Microsoft provides a "gx.lib" with it. So i put "gx.lib" amongst the others libs.

But when i try: /tmp/arm$ arm-wince-pe-gcc gapi.c -e WinMainCRTStartup

-L/tmp/arm/cross-tools/lib -lgx

I get: Warning: .drectve `/DEFAULTLIB:"coredll.lib" /DEFAULTLIB:"corelibc.lib" ' unrecognized Warning: .drectve `/DEFAULTLIB:"coredll.lib" /DEFAULTLIB:"corelibc.lib" ' unrecognized Warning: .drectve `/DEFAULTLIB:"coredll.lib" /DEFAULTLIB:"corelibc.lib" ' unrecognized /tmp/cc6iCDgg.o:gapi.c:(.text+0x28): undefined reference to `GXOpenDisplay' /tmp/cc6iCDgg.o:gapi.c:(.text+0x4c): undefined reference to `GXGetDisplayProperties' /tmp/cc6iCDgg.o:gapi.c:(.text+0x50): undefined reference to `GXOpenInput' /tmp/cc6iCDgg.o:gapi.c:(.text+0x60): undefined reference to `GXGetDefaultKeys' /tmp/cc6iCDgg.o:gapi.c:(.text+0x78): undefined reference to `GXCloseInput' /tmp/cc6iCDgg.o:gapi.c:(.text+0x7c): undefined reference to `GXCloseDisplay'

All the "undifined reference" are functions defined in gx.lib I didn't get any error with my "-lgx", so it seems found and accepted by the compiler.

What did i forget ?

Thank you!

Reply to
JSeb
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.