hi, Miller,
i've got this problem : i cannot include gem and pdp headers at the same time because they both include "m_pd.h" which does not support multiple inclusions.
it's annoying since i'm making a gem->pdp bridge.
could m_pd.h be modified to look like :
#ifndef __M_PD_H #define __M_PD_H ... #endif
for now, i'm patching pdp.h, that's quite dirty.
cheers,
sevy/yves
Hi all,
I've just committed some changes to the CVS repository with the object of getting as many externals as possible to build and run under Windows. Apologies if I've broken anyone's code - I've tried to be as conservative as possible about changes... to the point of #ifdef delimiting some changes which probably should be made to the code for all platforms.
There are a few issues which have popped up in many objects so I'll summarise the issues here:
[setup function naming] Consistent filename and _setup function naming keeps PD and automatic build systems happy.
[signed/unsigned comparions] A long bugbear of C, I know... but keep your compiler happy, and mine by trying to keep comparisons correct and consistent.
[array declarations] A number of the objects in the cxc collection declare automatic array variables with sizes that are non-constant. I'm not sure of the ANSI correctness of this, but Visual c++ sure doesn't like it.
There are many objects which will require more careful porting... I've only dealt with the trivial compile issues so far.
Daniel
On Sun, 9 Mar 2003, Daniel Heckenberg wrote:
[array declarations] A number of the objects in the cxc collection declare automatic array variables with sizes that are non-constant. I'm not sure of the ANSI correctness of this, but Visual c++ sure doesn't like it.
If it is ANSI then it is very recent ANSI (like, '99) and maybe it's not even ANSI at all. In any case, many compilers still in use won't like it. I mean, there was this other thing about VC++6 not understanding for-local variables; that feature is part of ANSI C++ '95 and GCC supported it back in '97...
Anyway... as far as I know, stack-allocated variable-length arrays are a GCC extension, and if it even became ANSI, it happened too recently to be something you can rely on in other compilers.
________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju