DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: code based a FreeImage and compiled with VC++ fails to load image to memory  (Read 4,476 times)

electronixtar

  • Member
  • Joined in 2007
  • **
  • Posts: 141
Hi board,

I have this little copymove.c, it's used for detecting duplicated area of a image, it's written in C but with some C++ features, it was originally compiled under Linux using

Code
-lfreeimage -lstdc++

I tried to port it to Windows, with the newest FreeImage.dll library, the compilation (with VC2003/MinGW) was successful, but the app fails every time to this line:

Code
FIBITMAP * bitmap = FreeImage_LoadFromMemory

Can anyone help me patch the program and make it run correctly? A copymove.exe binary is much more appreciated. Thanks a lot

Original address: https://www.donationcoder.com/forum/index.php?topic=19131.0