[Cs-dev] mkdb.c
Date | 2011-08-14 22:49 |
From | Steven Yi |
Subject | [Cs-dev] mkdb.c |
Hi John, I tried to compile the cataloger on OSX but ran into errors: mkdb.c:474: error: expected identifier or ‘(’ before numeric constant It has to do with this line: int true(void) where "true" is read as a constant and not the name of a function. Perhaps a merge error or something that is allowed with a different compiler? Note: I've updated the CMake file to added building catalog option, but have disabled it by default for now until it is compilable on OSX. Thanks! steven ------------------------------------------------------------------------------ FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-08-14 22:53 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] mkdb.c |
reading in a small font and not sure ~I read tgis correct;y, but trie is not a reservered word in ansi C?89. suggests thae c compiler is wrong more when awake tomorrow > Hi John, > > I tried to compile the cataloger on OSX but ran into errors: > > mkdb.c:474: error: expected identifier or ( before numeric constant > > It has to do with this line: > > int true(void) > > where "true" is read as a constant and not the name of a function. > Perhaps a merge error or something that is allowed with a different > compiler? > > Note: I've updated the CMake file to added building catalog option, > but have disabled it by default for now until it is compilable on OSX. > > Thanks! > steven > > ------------------------------------------------------------------------------ > FREE DOWNLOAD - uberSVN with Social Coding for Subversion. > Subversion made easy with a complete admin console. Easy > to use, easy to manage, easy to install, easy to extend. > Get a Free download of the new open ALM Subversion platform now. > http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > > > ------------------------------------------------------------------------------ FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, easy to manage, easy to install, easy to extend. Get a Free download of the new open ALM Subversion platform now. http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2011-08-15 12:17 |
From | Steven Yi |
Subject | Re: [Cs-dev] mkdb.c |
Attachments | None None |
I took a look, C99 has true defined as 1 in stdbool.h. I think this should be modified in mkdb.c.
On Sun, Aug 14, 2011 at 5:53 PM, <jpff@cs.bath.ac.uk> wrote: reading in a small font and not sure ~I read tgis correct;y, but trie is |
Date | 2011-08-15 12:24 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Cs-dev] mkdb.c |
I write C89 Anyway it was removed earlier this morning > I took a look, C99 has true defined as 1 in stdbool.h. > > I think this should be modified in mkdb.c. > > On Sun, Aug 14, 2011 at 5:53 PM, |
Date | 2011-08-15 14:32 |
From | Steven Yi |
Subject | Re: [Cs-dev] mkdb.c |
Attachments | None None |
Thanks John, Everything compiles fine now with scons and cmake on OSX. steven
On Mon, Aug 15, 2011 at 7:24 AM, <jpff@cs.bath.ac.uk> wrote: I write C89 |
Date | 2011-08-15 19:54 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] mkdb.c |
So is the code standard C99 now? Since when? On 15 Aug 2011, at 12:24, jpff@cs.bath.ac.uk wrote: > I write C89 > > Anyway it was removed earlier this morning > >> I took a look, C99 has true defined as 1 in stdbool.h. >> >> I think this should be modified in mkdb.c. >> >> On Sun, Aug 14, 2011 at 5:53 PM, |
Date | 2011-08-15 20:13 |
From | Steven Yi |
Subject | Re: [Cs-dev] mkdb.c |
Attachments | None None |
Well the issue is that it looks like either the compiler is defaulting to c99 or the headers just have that bool value set. So that's where the conflict was. There was no mention of coding in C99.
If you all want to enforce C89, then we may want to consider using --std=c89 (with gcc), otherwise we're using whatever the default is.
On Mon, Aug 15, 2011 at 2:54 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: So is the code standard C99 now? Since when? |