Hi Teo,

I think we've touched this topic in the past,
you need to add an extra '.' at the end of the
lib name to avoid this problem.

Now, when using macro substitution I don't know
what is the solution. It's pretty unfortunate
some tools use dots as part of the filename
(I've seen this causing problem with other
tools, too), but I have no solution for it this
time. I hope someone will post some ideas to
save the day.

Brgds,
Viktor

On 2009 Nov 10, at 02:18, Teo Fonrouge wrote:

Hello Viktor,

Seems that parsing (at least in -ldflag) is removing wrongly the "extension" of lib files, please see the output below:

$ wx-config --libs
-pthread -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 - lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 - lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 - lwx_baseu_net-2.8 -lwx_baseu-2.8

and when linking using `wx-config --libs` is required:

$ hbmk2 -cflag=`wx-config --cflags` -ldflag=`wx-config --libs` ... (intentionally reduced) test.prg
hbmk2: Error: Running linker. 1
gcc test.o hbmk_0pc3he.o -pthread -Wl,--start-group - lwx_gtk2u_richtext-2 -lwx_gtk2u_aui-2 -lwx_gtk2u_xrc-2 - lwx_gtk2u_qa-2 -lwx_gtk2u_html-2 -lwx_gtk2u_adv-2 -lwx_gtk2u_core-2 - lwx_baseu_xml-2 -lwx_baseu_net-2 -lwx_baseu-2 -lhbcplr -lhbdebug - lharbour -Wl,--end-group -otest -L/usr/lib/harbour


As you see, the ".8" is removed from the libnames.


best regards,

Teo

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

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

Reply via email to