Linking both GTK-1.2 and GTK-2.x libs



Hi,

I have a GTK-1.2 application and I would like to use the RLIB
reporting engine. Problem is, RLIB uses GLIB-2.x internally.
Is it possible to link together both GTK/GLIB versions together
and have it working?

What I have done is that I wrapped all RLIB calls into an own library,
so my reporting library can include different set of include headers
(<rlib/rlib.h> and <glib-2.0/glib>) as the main application and
it compiles nicely. However, RLIB opens it's lower level DBMS
accessor modules with e.g. g_module_open("libr-odbc", 2).

It seems that it finds the wrong version of the function,
strace shows it tries to dlopen /usr/lib64/libr-odbc instead of
/usr/lib64/libr-odbc.so. The whole stuff works nicely in another
fully GTK-2.x application, g_module_open() in GLIB-2.x finds the
correct shared library name even on Windows. I "fixed" it with
creating a symlink but then it crashes elsewhere, I guess it comes
from the same problem.

If linking together GTK-1.2 and GTK-2.x can be done, how?

Best regards,
Zoltán Böszörményi




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]