> David,

> You need to link in the math lib, just add at the end of your link
> sequence:  -lm

> BTW, for environments that use bash shells (like linux), harbour >provides the
> scripts:

> hbcmp, hblnk, hbrun

> those scripts allows you to easily compile, link and run respectively. > e.g.:

> hbcmp hello.prg  // produces hello.o
> hblnk hello.o    // produces hello executable binary file,
>                  // automatically includes all the needed libs.
> hbrun hello.prg  // executes the hello.prg

> check the help (just call any of those scripts without arguments) for > > details.

Thanks Teo
-lm was missing and now everything link/work fine

I use hbcmp, hblnk, hbrun sometimes, but I use my own scripts for some specific needs

Final link sequence was based in hb-build (static), bld.bat ( bcc32, gcc, mingw32 ), your suggestions, hbdot Makefile, harbour\lib dir list and trial and error

Keys are hbvm, hbrtl repeated and -lm
In hb-build exist as:
  SYSTEM_LIBS="-lm -ldl"

This is my working sequence (not all are used):
 -I${HB_INC} -L${HB_LIB} \
 -lhbcpage -lhbdebug -lhbvm -lhbrtl \
 -l${HB_GT_LIB} ${HB_SCREEN_LIB} \
 -lhblang -lhbrdd -lhbrtl -lhbvm -lhbmacro -lhbpp \
 -lrddfpt -lrddntx -lrddcdx -lhbhsx -lhbsix -lhbcommon \
 -lhbclipsm \
 -lhbusrrdd \
 -lhbcplr -lhbpcre -lhbct -lhbnf \
 -lhbtip -lxhb  \
 -lfm -lm -ldl


David Macias


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

Reply via email to