PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Jpeg Lib on PocketPC 2002 x86?

Has anyone else had problems with Jpeglib on PocketPC 2002 x86?

It seems to be looking for undecorated names but the import library has @nn style ones... any idea what it up?

unresolved external symbol _jpeg_destroy_decompress
could be a name mangling issue ... try to put the function declarations between

Code:

#ifdef __cplusplus
extern "C" {
#endif


and

Code:

#ifdef __cplusplus
}
#endif
already in extern "C"

tried all conbinations. In the .lib they are _name@n format (extern "C" __stdcall according to MS docs) however for some weird reason Pocket PC 2002 x86 seems to seard for simply _name

I tried _stdcall which worked, but then the Jpeg code crashes, so I'm guessing the calling convention messed up
If you're linking to a stub lib for a dll then you can just revert to dynamically loading the DLL and not bother with the lib at all.

Dan East
sorry that was a typo, I mean static library not import library - Jpeglib is static