Bug#401600: problem can be closed
Steffen Moeller
steffen_moeller at gmx.de
Wed Dec 6 22:48:22 CET 2006
Hi Folkert,
On Wednesday 06 December 2006 20:08, Folkert van Heusden wrote:
> The problem can be closed.
> The solutions was:
> do NOT do:
> g++ -lboinc file.cpp
> but to
> g++ file.cpp -lboinc
> instead (which puzzles me but hey it works).
ah, ok, I thought it was omitted. As a try of a possible explanation:
the order of object files / libraries is important if I recall that correctly.
I remember my endless tries to get all the X libraries in the right order.
The GNU ld even has a -u option which allows you to undefine a symbol while
reading from left to right to have it defined in a later (to the right)
library.
-u symbol
Pretend the symbol symbol is undefined, to force linking of li-
brary modules to define it. You can use `-u' multiple times
with different symbols to force loading of additional library
modules.
Hm. The man page does not really reflect this. Sombody please correct me if I
was talking nonsense.
Steffen
More information about the pkg-boinc-devel
mailing list