Re: error compiling bonobo-activation, glib related?



On Wed, 2001-08-22 at 23:20, Maciej Stachowiak wrote:
> On 22Aug2001 10:22PM (+0200), Rodrigo Moya wrote:
> > On Wed, 2001-08-22 at 21:25, Darin Adler wrote:
> > > On Wednesday, August 22, 2001, at 12:09  PM, Rodrigo Moya wrote:
> > > 
> > > > yes, and it worked perfectly well, no error messages
> > > 
> > > OK. Lets try this:
> > > 
> > >      gcc -DHAVE_CONFIG_H \
> > >        -DBONOBO_ACTIVATION_LOCALEDIR=\"/gnome/head/INSTALL/share/locale\" \
> > >        -DORBIT2=1 -I/gnome/head/INSTALL/include/glib-2.0 \
> > >        -I/gnome/head/INSTALL/lib/glib-2.0/include 
> > > -I/gnome/head/INSTALL/include \
> > >        -DVERSION=\"0.9.1\" -ansi -std=c99 -D_POSIX_C_SOURCE=199506L \
> > >        -D_BSD_SOURCE -Wall -Wchar-subscripts -Wmissing-declarations \
> > >        -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
> > >        -Wsign-compare -g -O2 -c \
> > >        test.c  -fPIC -DPIC -o test.c.o
> > > 
> > > Does that work?
> > > 
> > no, it gives the same error:
> > 
> > test.c:0: malformed option `-D __STRICT_ANSI__-trigraphs'
> > 
> 
> Maybe it's confused by passing both -ansi and -std=c99 (which is
> unnecessary anyway). Try taking out -ansi and leaving in only -st=c99.
> 
ok, removing -ansi gives:

cc1: unknown C standard `c99'

re-adding -ansi and removing -std=c99 seems to work, both for the test
program and the Bonobo_Unknown-common.c file. But I still get the glib
problem (__VA_ARGS__).

I'm running gcc-2.95-4

any idea on this one?

cheers
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/




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