Today i was compiling this simply prg

ubu...@ubuntu:~/tmp$ cat p.prg
funct main()
dirmake("ppppppp")
return

with hbmk2 i get:

hbmk2 p
hbmk2: Processing configuration: /usr/bin/hbmk.cfg
Harbour 2.0.0beta3 (Rev. 12618)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 'p.prg'...
Lines 3, Functions/Procedures 1
Generating C source output to 'p.c'... Done.
p.o:(.data+0x38): undefined reference to `HB_FUN_DIRMAKE'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc p.o hbmk_dp7lf7.o   -Wl,--start-group -lhbextern -lhbdebug -lhbvm
-lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd
-lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd
-lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lm -ldl -lrt
-lhbpcre -lhbzlib -lgpm  -Wl,--end-group -op -L/usr/lib

Please note my (never touched) /usr/bin/hbmk.cfg conf file.

DIRMAKE() is a hbct function, so you should add -lhbct option
to you hbmk2 cmdline.

hbmk probably includes this lib by default, that's the reason
it links.

I don't plan to add any hard-wired references of 3rd party
(including Harbour contribs) to hbmk2 code, for clean separation
of components. But you can very easily add it through hbmk.cfg
or hbmk.hbm, (just to mention the two most obvious in this case).

The include permission thing is something done in postinst.sh
and I hope Przemek can take an expert look on it, and give it
fix.

Brgds,
Viktor

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

Reply via email to