Page 1 of 1

I have a problem with Builder

Posted: Tue Aug 08, 2006 12:35 pm
by Sergey
I have read this posts:
http://newsgroup.xnview.com/viewtopic.php?t=967
and this
http://newsgroup.xnview.com/viewtopic.p ... ht=builder

then I'm doing next

Project/Options/Directories&Conditionals
include path
added: gflSdk/c++/obsolete // also i tryed to add gflSdk/c++
added: gflSdk/include
lib path
added: gflsdk\lib
then I have created libraries with implib using parameters -a -c (b_libgfl240.lib and b_libgfle240.lib) and added them to project
then I also have included gflw.h
then I also have added C++ wrapper to project

Conditional defines:
i have tryed _DEBUG and WIN32

I have completly new project with this code executed with button pressed:

Code: Select all

GFLW_LIBRARY::Initialise();
AnsiString ver = gflGetVersion();
When I compile my project I get these linker errors:
Unresolved extenral 'gflLibraryInit' referenced from unit1.obj
Unresolved extenral 'gflGetVersion' referenced from unit1.obj

What's wrong?
Thanks in advance...

Posted: Sat Aug 12, 2006 10:52 pm
by MaierMan
You need to add the actual .lib files.
Either add them to the Project.
Or use a pragma in some unit to link them:

Code: Select all

#pragma link "b_libgfl240.lib"
...