Hello Fernando,
> The correct syntax is
>
> -ldflag=-Wl,--allow-multiple-definition
Not work here :(
I create this sample:
TEST.PRG
function main
cls
? hb_valtoexp( .T. )
return NIL
FUNCTION hb_valtoexp( lNewValue )
return lNewValue
and TEST.HBC
-ldflag=-Wl,--allow-multiple-definition
and this is the return of compiling:
hbmk2: Processando opções do ambiente: -compiler=mingw
Harbour 3.2.0dev (Rev. 17513)
Copyright (c) 1999-2012,
http://harbour-project.org/
Compiling 'tes3.prg'...
Lines 11, Functions/Procedures 2
Generating C source output to 'C:\TMP\hbmk_fjnfm6.dir\tes3.c'... Done.
c:/hrb_ming/lib/libhbrtl.a(valtoexp.o):(.text+0x5c0): multiple
definition of `HB_FUN_HB_VALTOEXP'
C:/TMP/hbmk_fjnfm6.dir/tes3.o:tes3.c:(.text+0x0): first defined here
collect2: ld returned 1 exit status
hbmk2: Erro: Executando linkeditor. 1
gcc.exe C:/TMP/hbmk_fjnfm6.dir/tes3.o C:/TMP/hbmk_fjnfm6.dir/
hbmk_u6govm.o -mconsole -Wl,--start-
group -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -
lgtpca -lgtstd -lgtwin -lgtwvt
-lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -
lrddfpt -lhbrdd -lhbhsx -lhbsix -
lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -
lgdi32 -ladvapi32 -lws2_32 -lwi
nspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr
-lwinmm -lmapi32 -limm32 -lms
img32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -otes3.exe -Lc:/
hrb_ming/lib -Lc:/hrb_ming/bin
Any other suggestions ?
Best Regards,
Rossine.