Re: Constants

Chris Robinson <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
On Monday 04 January 2010 7:16:41 pm 
[email protected] wrote:
> Hello.
> 
> I'm about to attempt to develop a set of language bindings for OpenAL
> and would like to know if the values of constants such as AL_NO_ERROR,
> etc, are implementation-defined or are actually specified somewhere.
> 
> If the constants are implementation defined, the values of the constants
> must be detected at compile time, which is unwieldly and prevents
> cross-compilation (you can't compile and run a C program that prints
> the value of a given constant if you aren't producing code that will
> run on the host system).

A cross-compiler should produce code that is compatible with the target 
system, not the host. If Windows specifies an enum being one value, and Linux 
uses another, for example, then both MinGW on Windows and MinGW on Linux would 
produce code according to what Windows says the value is. There'd be no 
problem cross-compiling an OpenAL app for Win32 if Win32 uses different 
constant values, as long as the cross-compiler is using proper Windows-based 
headers.

That said, I don't believe the constant values differ between systems. I know 
Linux and Windows use the same standard headers, and I believe OSX does, too.
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.