On Friday 21 March 2008 04:31:50 am David Arturo Macias Corona wrote:
> I am testing current Harbour under Mandriva 2008
> gcc (GCC) 4.2.2 20071128 (prerelease) (4.2.2-3.1mdv2008.0)
>
> Building a system result in errors included below
>
> Something is missing, but what ?
>
> Link:
>
> export HB_GT_LIB=gttrm
> export HB_SCREEN_LIB=
>
> gcc -o thsuphost.exe sgggen0.o ctprgext.o \
>   sgg00.o sggnet.o ctsistem.o ctclpnet.o cntlib.o david0.o cntads.o
> hsamples.o hbfalta.o  \
>   suphost.o libhost.o conm1.o libreria.o hbfsuphost.o  \
>   -I${HB_INC} -L${HB_LIB} \
>   -l${HB_GT_LIB} ${HB_SCREEN_LIB} \
>   -lhbvm -lhbpp -lhbrtl -lhbrdd -lrddfpt -lrddcdx -lrddntx -lhbhsx
> -lhbsix -lhbusrrdd \
>   -lhbmacro -lhbcommon -lhblang -lhbcpage    \
>   -lhbdebug -lhbcplr -lhbpcre -lhbct -lhbnf \
>   -lhbtip -lxhb -lhbclipsm

Hello David,

You need to give link-time info to solve cross references by 'grouping' the 
harbour libs, this is done by simply adding the "-Wl,--start-group 
<hblibs,...> -Wl,--end-group" options, eg:

   -Wl,--start-group -lhbvm -lhbpp -lhbrtl -lhbrdd -lrddfpt -lrddcdx -lrddntx 
-lhbhsx
   -lhbsix -lhbusrrdd \
   -lhbmacro -lhbcommon -lhblang -lhbcpage    \
   -lhbdebug -lhbcplr -lhbpcre -lhbct -lhbnf \
   -lhbtip -lxhb -Wl,--end-group -lhbclipsm

[snip]


best regards

Teo Fonrouge
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to