[Glade-users] Re: help needed in including more than 2 libraries in application
poonam chokshi
poonam chokshi <poonam13@gmail.com>
Mon, 9 May 2005 09:31:22 +0530
hello,
This is my makefile.am and i am trying to include the external
libraries to it not any glade libraries...
## Process this file with automake to produce Makefile.in
MYLIBRARY=3D/root
MYFILELIB=3D/root
INCLUDES =3D \
=09-DPACKAGE_DATA_DIR=3D\""$(datadir)"\" \
=09-DPACKAGE_LOCALE_DIR=3D\""$(prefix)/$(DATADIRNAME)/locale"\" \
=09@PACKAGE_CFLAGS@ \
=09 -I$(MYLIBRARY)/include/iniparser/src -I$(MYFILELIB)/include/filelib/sr=
c=20
=09
=09=20
=09
bin_PROGRAMS =3D vctgconfmgr
vctgconfmgr_SOURCES =3D \
=09main.c \
=09support.c support.h \
=09interface.c interface.h \
=09callbacks.c callbacks.h=20
vctgconfmgr_LDADD =3D @PACKAGE_LIBS@ \
=09=09-L${MYLIBRARY}/lib/iniparser -liniparser -L${MYFILELIB}/lib/filelib -=
lfilelib
=09=09
=09=09
And also i am changing my configure.in and adding just two lines more
in it with CPPFLAGS and the LIBS.
This is the lines i am using in Configure.in
CPPFLAGS=3D-I/root/iniparser/src -I/root/filelib/src
LIBS=3D-I/root/iniparser -I/root/filelib/
Can you help me please as i am trying to add the two libraries and i
am getting the error in doing the ./autogen.sh as...
./configure: line 4096: -I/root/filelib/src: No such file or directory
./configure: line 4097: -I/root/filelib/: No such file or directory
=09=09
Now if i remove the filelib from the configure.in and keep only the
iniparser library it will give me the error in the make as
/usr/bin/ld: cannot find -lfilelib
=09=09
Please help me out with this .....
Thanks=09=09
On 5/8/05, adi <adiroiban@gmail.com> wrote:
> please add more details.
> what libraries (2 glade-lib ?)
> you are using Anjuta or you are writing your own autotools files....
> can you show a a fraction of you makefile.. .or how do you try to compile
> it.
>=20
> adi
>=20
> On 5/7/05, poonam chokshi <poonam13@gmail.com> wrote:
> > hello,
> >=20
> > I am designing an application in which i need to include more than
> > one library in my application ..I have already included one of my
> > library in the application but when i try to include the other library
> > along with that library it kind of doesn't include the second
> > library....
> >=20
> > Which is the way that i can included more than 1 external libraries in
> > my application....????
> >=20
> > Thanks.
> > _______________________________________________
> > Glade-users maillist - Glade-users@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/glade-users
> >
>