Author Topic: Put FreeImage wrapper in a package  (Read 1226 times)


  • Jr. Member
  • **
  • Posts: 65
Put FreeImage wrapper in a package
« on: December 09, 2016, 04:13:17 pm »
I thought it might be easier (?) if the FreeImage wrapper .pas files were in a package, along with the .inc and .dll file.
However, the package won't compile due to a circular unit reference error in FreeBitmap.pas, which has FreeImage.pas in its uses clause. FreeImage.pas does NOT have FreeBitmap.pas referenced anywhere though.

Can this be done and does it even make sense?

[EDIT] Renamed the package "FreeImage_pkg.lpk" and the error disappeared. The packages own .pas file was "conflicting" with the FreeImage.pas.

Other question: is there a way to make Lazarus include the .dll file with the final product?
« Last Edit: December 12, 2016, 08:46:29 am by Girlbrush »
Getting back into programming after 8+ years.


TinyPortal © 2005-2018