GFL SDK v2.90 Unicode Error

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

Post Reply
Zai++
Posts: 21
Joined: Fri Nov 18, 2005 4:57 pm
Location: Moscow

GFL SDK v2.90 Unicode Error

Post by Zai++ » Thu Nov 13, 2008 1:17 pm

Unicode versions of Load ans Save functions fail both in С++Builder and Visual C++.

This ANSI code works correct:

Code: Select all

 gflLibraryInit();
 GFL_BITMAP* B;
 GFL_LOAD_PARAMS LP;
 gflGetDefaultLoadParams(&LP);
 gflLoadBitmap("C:\\src.bmp",&B,&LP,NULL);

 GFL_SAVE_PARAMS SP;
 gflGetDefaultSaveParams(&SP);
 SP.FormatIndex=0;
 gflSaveBitmap("C:\\dst.bmp",B,&SP);

 gflFreeBitmap(B);
 gflLibraryExit();
This Unicode code can't be linked:

Code: Select all

 gflLibraryInit();
 GFL_BITMAP* B;
 GFL_LOAD_PARAMS LP;
 gflGetDefaultLoadParams(&LP);
 gflLoadBitmapW(L"C:\\src.bmp",&B,&LP,NULL);

 GFL_SAVE_PARAMS SP;
 gflGetDefaultSaveParams(&SP);
 SP.FormatIndex=0;
 gflSaveBitmapW(L"C:\\dst.bmp",B,&SP);

 gflFreeBitmap(B);
 gflLibraryExit();
C++Builder 6.0: [Linker Error] Unresolved external 'gflLoadBitmapW' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\GFL290TEST\UNIT1.OBJ

VC++ 2008 Express Edition: 1>vctest.obj : error LNK2001: unresolved external symbol _gflLoadBitmapW@16

same with gflSaveBitmapW

:(
Did anybody work with Unicode using GFL?

User avatar
xnview
Author of XnView
Posts: 29886
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: GFL SDK v2.90 Unicode Error

Post by xnview » Fri Nov 14, 2008 2:26 pm

Do you use the Unicode version of gfl?
Pierre.

Zai++
Posts: 21
Joined: Fri Nov 18, 2005 4:57 pm
Location: Moscow

Post by Zai++ » Mon Nov 17, 2008 3:50 pm

A-a-a! There are two versions of lib. I didn't pay attantion.
sorry for a stupid question

But what for did you make two VC++ versions, if the unicode version works both with ansi and unicode??

User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique » Mon Nov 17, 2008 5:36 pm

Hi, just have a look in your C:\Program Files\GflSDK folder, you have several versions of the lib with specific names : lib, lib64, lib64W, libW ;)
Dom

Post Reply