Hi,
hbmk2: Processing configuration: /boot/common/bin/hbmk.cfg
Harbour 2.0.0beta3 (Rev. 12513)
Copyright (c) 1999-2009, http://www.harbour-project.org/
Compiling 't.prg'...
Lines 5, Functions/Procedures 1
Generating C source output to 't.c'... Done.
/boot/common/lib/harbour/libhbvm.a(hvmall.o):
(.data.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0):
undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc t.o hbmk_zy0a15.o -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang
-lhbcpage -lgtcgi -lgtpca -lgtstd -lgttrm -lhbrdd -lhbuddall
-lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix
-lhbrtl -lhbvm -lhbmacro -lhbcplr -lhbpp -lhbcommon -lroot -lsocket
-lz -lhbpcre -ot -L/boot/common/lib/harbour -L/system/lib
this even with HB_BUILD_MODE=cpp given to hbmk2, if that matters. if i
hbmk2 doesn't understand HB_BUILD_MODE envvar. You have to
use '-cpp' switch. In fact there are quite some GNU Make
envvars which aren't implemented in hbmk2, and honestly I'd
rather delete existing ones first to clean off some time
waste trying to keep these in sync, and also to clean away
often seen confusion when envvar leftovers change hbmk2
behavior in hard-to-detect and unwanted way.
Dunno how this breaks general assumption from such cmdline
tools, but I'm 100% in favor of cmdline switches. Opinions
are welcome, could be I'm missing some important scenarios
here.
[ BTW, HBMK2_OPTION envvar could be added, which would
accept simple cmdline options as is. ]
explicitly specify HB_USER_LDFLAGS=-lstdc++, then it works (i reckon
gcc does this automatically when called as g++, and needs to be given
if called as gcc).
If we can define the rules when to include this lib I can add
it to hbmk2. First confusion is what is the difference between
supc++ and stdc++ ? mingw/win requires supc++ when linking hbqt.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour