Csound Csound-dev Csound-tekno Search About

[Cs-dev] mkdb.c

Date2011-08-14 22:49
FromSteven 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

Date2011-08-14 22:53
Fromjpff@cs.bath.ac.uk
SubjectRe: [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

Date2011-08-15 12:17
FromSteven Yi
SubjectRe: [Cs-dev] mkdb.c
AttachmentsNone  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
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
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2011-08-15 12:24
Fromjpff@cs.bath.ac.uk
SubjectRe: [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,  wrote:
>
>> 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
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-15 14:32
FromSteven Yi
SubjectRe: [Cs-dev] mkdb.c
AttachmentsNone  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

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, <jpff@cs.bath.ac.uk> wrote:
>
>> 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
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2011-08-15 19:54
FromVictor Lazzarini
SubjectRe: [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,  wrote:
>>
>>> 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
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>> ------------------------------------------------------------------------------
>> uberSVN's rich system and user administration capabilities and model
>> configuration take the hassle out of deploying and managing  
>> Subversion and
>> the tools developers use with it. Learn more about uberSVN and get  
>> a free
>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing  
> Subversion and
> the tools developers use with it. Learn more about uberSVN and get a  
> free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-08-15 20:13
FromSteven Yi
SubjectRe: [Cs-dev] mkdb.c
AttachmentsNone  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?
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, <jpff@cs.bath.ac.uk> wrote:
>>
>>> 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
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>> ------------------------------------------------------------------------------
>> uberSVN's rich system and user administration capabilities and model
>> configuration take the hassle out of deploying and managing
>> Subversion and
>> the tools developers use with it. Learn more about uberSVN and get
>> a free
>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing
> Subversion and
> the tools developers use with it. Learn more about uberSVN and get a
> free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel