----- Original Message -----
From: "Per Westermark" <pw...@ia...>
To: "Emiliano" <sky...@fa...>
Cc: <dev...@li...>
Sent: Saturday, February 28, 2004 10:11 PM
Subject: Re: [Dev-C++] Problem with jpeg.library
> The library is written in C, and your program in C++.
>
> do:
>
> extern "C" {
> #include "jpeglib.h"
> }
>
> to inform the compiler that it should look for the jpeg functions using
> the C calling convention, and not try to name-mangle the symbols.
Great!! I had tried to set "compile as C" the only file using jpeg lib and
it didn't work :)
with that directive, it worked at once!
thanks again,
Emiliano
|