On Tue, 29 Jan 2013 11:02:32 -0600
"Jeff P. Zacher" <ad_...@ya...> wrote:
> Do I need a so file built to link against to use window.h? I am
> getting undefined reference errors to symbols in the cgu namespace
> durning the link phase...I installed from the package manager in
> Sabayon...
Hi,
The Cgu::WinBase class is compiled into the library rather than being
templated into a header file only, so you do need the accompanying
library binary, which could be an archive (*.a file) or a dynamically
linked shared library (*.so file).
I do not know how the Sabayon distribution organises its packages I am
afraid, but I should be surprised if the library binaries were not
included. Do you have a libcxx-gtk-utils* files appearing in /usr/lib?
If you do, possibly your own project has not incorporated the result of
'pkg-config --libs' into its linker list. What build system are you
using?
Chris
|