简体   繁体   中英

GraphicEx with Delphi 10.1 Berlin

I installed GraphicEx (a Delphi image loader library) in Delphi 7, and it worked fine.

Now, when I try to install it in Delphi 10.1 Berlin, I get errors:

[dcc32 Error] JPG.pas(1136): E2065 Unsatisfied forward or external declaration: 'jpeg_reset_huff_decode' 
[dcc32 Error] JPG.pas(1258): E2065 Unsatisfied forward or external declaration: '@jfwrite'
[dcc32 Error] JPG.pas(1258): E2065 Unsatisfied forward or external declaration: '@jfflush'
[dcc32 Error] JPG.pas(1258): E2065 Unsatisfied forward or external declaration: '@jfread'
[dcc32 Fatal Error] GraphicEx.pas(613): F2063 Could not compile used unit 'JPG.pas'

So, how can I use GraphicEx in Delphi 10.1 Berlin?

As described on the page to which you link, this library has not been updated to the latest versions of Delphi. However, you will most likely find that you do not need it any more. Recent Delphi versions have out of the box support for JPEG and PNG images formats.

Resolve your problem by removing references to this library and using the built in image format support.

If you are using the library for the more esoteric image formats that it offers then you will need to update it to work with the your version of Delphi.

In the first instance, the compilation errors that you report are simply down to your not having added the necessary folders to your search path. The object files that define those functions are found in the 3rd party\\LibJPG\\obj folder. You must add that to your search path. When you do that you will get another error. Keep resolving them one by one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM