Hi,

I'm converting old application to Harbour MiniGUI (new testing version
2.5.2 was recently released with Harbour 1.0.0RC2 Intl. (Rev. 8928) version of
compiler) and I've got this linking error (MingW 3.4.5 environment):

c:\HMG\harbour\lib/libhbrdd.a(dbcmd.o):dbcmd.c:(.text+0x130): multiple
definition of `HB_FUN_DBF'
c:\HMG\harbour\lib/libhbclipsm.a(dbf.o):dbf.c:(.text+0x0): first defined
here

Digging the error I've found that obsolete function DBF() is defined in
source/rdd/dmcmd.c and also in contrib/hbclipsm/dbf.c.
Workaround is use Alias() in source, but...

I thing that the one in contrib should be removed -  Victor?

Compilaton with BCC5 is OK - obviously tlink32 resolves symbols in libs
differently.

Sample:
// Error: multiple definition DBF() - in MingW - libhbrdd and libhbclipsm
REQUEST DBFCDX

PROCEDURE Main()
 RDDSetDefault( "DBFCDX" )

 DBCreate( "Test", { { "KOD", "C", 2, 0 } }, "DBFCDX" )
 USE Test
 ? "Database:" + DBF()

RETURN

Regards

Vojtech Obrdlik


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to