Re: Including rlib in my own program fails to compile

Alfredo Cole <[email protected]> Tue, 19 Jul 2005 11:03:11 -0600
Newsgroups gmane.text.rlib.user
Organization Grupo ACyC
Message-ID <[email protected]>
El Martes, 19 de Julio de 2005 10:10, Bob Doan escribió:
> Try it like this:
>
> pkg-config --cflags --libs rlib glib-2.0
>

These are the complete options I'm passing to the compiler:

-I. -I/usr/include/libxml2/ -I/usr/include/rlib/ 
-I/opt/gnome/include/glib-2.0/ -I/opt/gnome/lib/glib-2.0/include/ 
-I/usr/include -D_GNU_SOURCE -DPIC -DUNDEF_HAVE_INITGROUPS -fmessage-length=0 
-w -fPIC -fexceptions -Wno-deprecated -fno-strict-aliasing `wx-config 
--cxxflags` `pkg-config --cflags rlib glib-2.0`

To the linker (although it never gets to this phase):

-L. -L/usr/lib/mysql/ -lfixed -lxbase 
-lkeylok /usr/lib/mysql/libmysqlclient.a /usr/lib/libr.a /usr/lib/librpdf.a 
`pkg-config --libs rlib glib-2.0` `wx-config --static --libs`

And still will not compile. If I remove the two include files (rlib.h and 
rlib_input.h), the project again compiles ok. Please advise.

Regards.

-- 
Alfredo J. Cole
Grupo ACyC


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click