Hi, This seems to became a FAQ. To link any contribs which depend on 3rd party libraries, you need two things:
- the contrib lib ("hbsomething") - 3rd party lib or implib (mostly implib) If you use HB_BUILD_IMPLIB=yes and .hbc files, this is automatically arranged for you, if you don't, you need to manage it manually. Otherwise there will be missing symbols. This is true for ALL such cases. Viktor On 2010 May 20, at 00:05, smu johnson wrote: > Hi again, > > I am having a problem... I can't figure out how to get HB_CURL to work! > > Steps I took: > > 1) unzipped libcurl devel zip > 2) compiled harbour with HB_WITH_CURL=<curl include directory> > 3) made sure hbmk2 had -lhbcurl arg present for compiling hello world example > 4) made sure these includes were present in HELLO.PRG > > #include "hbcurl.ch" > #include "common.ch" > #include "fileio.ch" > > ... yet I got a few pages of errors, saying stuff like: > > g:/harbour/lib/win/mingw/libhbcurl.a(hbcurl.o):hbcurl.c:(.text+0x2b9d): > undefined reference to `_imp__curl_easy_setopt' > g:/harbour/lib/win/mingw/libhbcurl.a(hbcurl.o):hbcurl.c:(.text+0x2bc6): > undefined reference to `_imp__curl_easy_setopt' > g:/harbour/lib/win/mingw/libhbcurl.a(hbcurl.o):hbcurl.c:(.text+0x2c0c): > undefined reference to `_imp__curl_easy_setopt' > > ... over and over again. > > Is there a key step I'm missing? Maybe I need to compile hbcurl.c myself? > *confused* > > My hello.prg source: > =============== > > C:\hbm>cat hello.prg > #include "hbcurl.ch" > #include "common.ch" > #include "fileio.ch" > > FUNC MAIN > > ? curl_version() > ? curl_getdate( "Sun, 1 Jun 2008 02:10:58 +0200" ) > > RETURN > > > On Wed, May 19, 2010 at 1:22 PM, Viktor Szakáts <harbour...@syenar.hu> wrote: > > The rest is detected and used on a per contrib > basis. > > > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour