Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] build problems, latest CVS..

Date2009-02-28 23:05
Frommichael.gogins@gmail.com
SubjectRe: [Cs-dev] build problems, latest CVS..
There is a way. Google for the text of values.h. Inside it will say 
something like

#ifndef VALUES_H_INCLUDED
#define VALUES_H_INCLUDED

Then in your own code

#include 
#ifndef VALUES_H_INCLUDED
#include 
#endif

or whatever.

Hope this helps,
Mike

----- Original Message ----- 
From: "Anthony Kozar" 
To: "New Csound Developer list" 
Sent: Saturday, February 28, 2009 4:27 PM
Subject: Re: [Cs-dev] build problems, latest CVS..


>I could use #ifdefs, but since there is no way in C to say "try to include
>  and if that fails, try ", it seems likely to be a
> problem for other systems too.  I searched online and  is not
> present on at least OS X, other BSDs, and Mac Classic.   is ANSI 
> C
> and the GNU C library version of  has this comment in it:
>
> /* This interface is obsolete.  New programs should use
>    and/or  instead of .  */
>
> This is such a minor issue to fuss over but here are three possible ways 
> to
> change the file:
>
> 1)  #if  !(defined(__MACH__) && defined(__APPLE__)) && 
> !defined(mac_classic)
>      #include 
>    #endif
>
> 2)  Add a configure step to test for values.h and then
>    #ifdef HAVE_VALUES_H
>      #include 
>    #endif
>
> 3)  Remove #include  and replace all occurrences of MAXINT with
>    INT_MAX.  (ANSI C)
>
> In my opinion, #3 is the best and #1 the worst, but I do not want to 
> change
> your code without your permission.
>
> -- Anthony
>
> References:
>
> 
>
> 
>
>
> victor wrote on 2/28/09 3:36 AM:
>
>> Could you wrap it with #ifdefs?
>
>> ----- Original Message -----
>> From: "Anthony Kozar"
>> To: "New Csound Developer list" 
>> Sent: Saturday, February 28, 2009 8:28 AM
>> Subject: Re: [Cs-dev] build problems, latest CVS..
>>
>>
>>> I cannot build syncgrain.c on OS X (10.5) without removing this line:
>>>
>>> #include 
>>>
>>> I don't think it's necessary with #include  in there.
>>>
>>> Is it OK for me to commit this change?
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the 
> Enterprise
> -Strategies to boost innovation and cut costs with open source 
> participation
> -Receive a $600 discount off the registration fee with the source code: 
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-03-01 04:36
FromAnthony Kozar
SubjectRe: [Cs-dev] build problems, latest CVS..
Except that compilation fails when an include file is not found.

Anthony

michael.gogins@gmail.com wrote on 2/28/09 6:05 PM:

> There is a way. Google for the text of values.h. Inside it will say
> something like
> 
> #ifndef VALUES_H_INCLUDED
> #define VALUES_H_INCLUDED
> 
> Then in your own code
> 
> #include 
> #ifndef VALUES_H_INCLUDED
> #include 
> #endif
> 
> or whatever.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-03-04 15:20
FromTed
SubjectRe: [Cs-dev] build problems, latest CVS..
A further header problem on Gentoo Linux with gcc-4.1.2 is that
#define _ISOC99_SOURCE etc. in H/sysdep.h doesn't cover Linux
BSD socket structures. I had to add the following:

diff OOps/remote.c.Orig OOps/remote.c
23a24,25
> #define _BSD_SOURCE
>

Also, in the current scons control file, a minor fix:

diff SConstruct.Orig SConstruct
1303c1303
<     headers += ['csPerfThread.hpp']
---
>     headers += ['interfaces/csPerfThread.hpp']

Ted.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net