>[EMAIL PROTECTED] writes:
>
> > >------------------------------------------------------------ Robert Merkel   
> > > [EMAIL PROTECTED]
> > 
> > I have testing the file cpp-comment-test.c
> > the first command 
> > gcc -o cpp-comment-test cpp-comment-test.c  
> > 
> > no problem 
> > 
> > the second command
> > gcc --ansi -o cpp-comment-test2 cpp-comment-test.c
> > 
> > the result is
> > cpp-comment-test.c:7 :parse error before'/'
> > 
> > Solution????
> 
>Doh. . .  I should have seen this before.
>
>It looks like you've run configure with --enable-warnings.
>
>Don't do that :)
>
>Try rerunning configure without that argument and see if >the  problem goes away.

i have rerunning the configure 
the command line is
./configure --includedir=/usr/local/include --bindir=/usr/local/bin/X11 --enable-debug 
--enable-warnings --with-perl=/usr/bin/perl --with-swig=/usr/local/bin/swig --with-x 
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib 
--with-motif=/usr/local/r/X11R6/include 
--with-guile-config=/usr/local/bin/guile-config --with-included-gettext 
--with-xml-inculdes=/usr/lib/ --bindir=/usr/local/bin 

the problem not resolve ........
the error is 
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -Wall -g -g -Wall -ansi -pedantic 
-Wwrite-strings -Wid-clash
-31 -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes 
-Wmissing-prototypes -Wnested
-externs -Wshadow -Woverloaded-virtual -Winline -felide-constructors -fnonnull-objects 
-I/usr/lib/glib/inclu
de -I/usr/include -c Session.c  -fPIC -DPIC -o .libs/Session.lo
In file included from GNCId.h:40,
                 from Transaction.h:33,
                 from Account.h:30,
                 from BackendP.h:16,
                 from Session.c:41:
util.h: warning: 1 trigraph(s) encountered
In file included from GNCId.h:40,
                 from Transaction.h:33,
                 from Account.h:30,
                 from BackendP.h:16,
                 from Session.c:41:
util.h:45: warning: ANSI C does not allow macro with variable arguments
util.h:91: warning: ANSI C does not allow macro with variable arguments
util.h:92: warning: ANSI C does not allow macro with variable arguments
util.h:93: warning: ANSI C does not allow macro with variable arguments
util.h:94: warning: ANSI C does not allow macro with variable arguments
util.h:95: warning: ANSI C does not allow macro with variable arguments
util.h:96: warning: ANSI C does not allow macro with variable arguments
util.h:97: warning: ANSI C does not allow macro with variable arguments
util.h:98: warning: ANSI C does not allow macro with variable arguments
In file included from Account.h:29,
                 from BackendP.h:16,
                 from Session.c:41:
AccInfo.h:105: warning: comma at end of enumerator list
In file included from GNCId.h:39,
                 from Transaction.h:33,
                 from Account.h:30,
                 from BackendP.h:16,
                 from Session.c:41:
guid.h:63: warning: function declaration isn't a prototype
In file included from GNCId.h:40,
                 from Transaction.h:33,
                 from Account.h:30,
                 from BackendP.h:16,
                 from Session.c:41:
util.h:108: warning: function declaration isn't a prototype
util.h:197: warning: function declaration isn't a prototype
util.h:200: warning: function declaration isn't a prototype
In file included from Transaction.h:33,
                 from Account.h:30,
                 from BackendP.h:16,
                 from Session.c:41:
GNCId.h:67: warning: function declaration isn't a prototype
In file included from Account.h:30,
                 from BackendP.h:16,
                 from Session.c:41:
Transaction.h:71: warning: ANSI C does not support `long long'
Transaction.h:251: warning: ANSI C does not support `long long'
Session.c:102: warning: ANSI C does not allow extra `;' outside of a function
Session.c:191: warning: no previous prototype for `xaccSessionBeginSQL'
Session.c: In function `xaccSessionBeginSQL':
Session.c:197: parse error before `/'
Session.c:211: parse error before `/'
Session.c: In function `xaccSessionBeginFile':
Session.c:224: `PATH_MAX' undeclared (first use in this function)
Session.c:224: (Each undeclared identifier is reported only once
Session.c:224: for each function it appears in.)
/usr/include/bits/string2.h:403: warning: inlining failed in call to `__strcpy_small'
Session.c:255: warning: called from here
Session.c:257: warning: implicit declaration of function `strdup'
Session.c:257: warning: assignment makes pointer from integer without a cast
Session.c:303: warning: implicit declaration of function `gethostid'
Session.c:303: warning: long unsigned int format, unsigned int arg (arg 3)
Session.c:329: warning: assignment makes pointer from integer without a cast
Session.c:224: warning: unused variable `pathbuf'
Session.c: In function `MakeHomeDir':
Session.c:424: warning: implicit declaration of function `alloca'
Session.c:424: warning: assignment makes pointer from integer without a cast
Session.c: At top level:
Session.c:449: warning: initialization discards `const' from pointer target type
Session.c: In function `xaccResolveFilePath':                                          
                         
Session.c:457  `PATH_MAX' undeclared (first use in this function)  
...........................................
    the error is egual !!!!                                       
                                                                                       
                                                                                       
                                                                                       
                                                                                       
                                                                                  

-----------------------------------------------------

Salve, il messaggio che hai ricevuto
è stato inviato per mezzo del sistema
di web mail interfree. Se anche tu vuoi 
una casella di posta free visita il
sito http://club.interfree.it
Ti aspettiamo!

-----------------------------------------------------



--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to