FreeImage.dll example
jay_our
Fri Nov 6 09:32:04 PST 2009
Kevin,
Thanks. I now installed PellesC and I am able to compile the code.
I get one warning though:
D:\data\bcx\freeimage.h(770): warning #2203: Function 'FreeImage_OutputMessageProc' can't be __stdcall, changed to __cdecl.
which refers to this line:
DLL_API void DLL_CALLCONV FreeImage_OutputMessageProc(int fif, const char *fmt, ...);
What do I have to change in order to get rid of the message?
Jef.
--- In BCX at yahoogroups.com, "mrbcx" <kdiggins at ...> wrote:
>
>
>
> --- In BCX at yahoogroups.com, "jay_our" <jef_r@> wrote:
> >
> > Hi,
> >
> > Now that I am here: I am stuck with the example in message 32676.
> > I put the FreeImage.h, FreeImage.lib and FreeImage.dll files in the
> > same directory as my test.bas file. The linker tells me "undefined
> > reference to '__imp__FreeImage_load'". I guess I am doing something
> > wrong with calling the linker.
> > lcclnk -o test.exe -subsystem windows -s test.obj
> > (yes, there is still lcc on this computer).
> >
> > Jef.
>
> Hi Jef,
>
> I did not have to change a thing, in order to compile, link, and run using Pelles C 6.0 --- I run the 32-bit version on XP Pro.
>
> I think you have to recreate the .Lib files using LccWin32, if you insist on using LccWin32. I gave up on LccWin32 many years ago. I suggest you abandon LccWin32 and start using Pelles. Pelles is simply a more reliable compiler.
>
More information about the BCX
mailing list