Errors In System Files

Sage
Posts: 1,066
Joined: 2004.07
Post: #1
I'm still trying to compile my test app with Ogre, but now I'm getting lots of errors from system files (like unistd.h and time.h). Any suggestions as to what might be causing this? I know that at some point Ogre uses SDL and Cocoa if that has any effect on things. Here's the long error list:

Code:
vm_types.h:37: error: syntax error before `;' token
vm_types.h:45: error: syntax error before `;' token
vm_types.h:57: error: syntax error before `;' token
vm_types.h:64: error: syntax error before `;' token
vm_region.h:62: error: 'vm_object_offset_t' is used as a type, but is not defined as a type.
vm_region.h:209: error: 'vm_object_offset_t' is used as a type, but is not defined as a type.
unistd.h:134: error: type specifier omitted for parameter `gid_t'
unistd.h:134: error: type specifier omitted for parameter `uid_t'
unistd.h:136: error: parse error before `,' token
unistd.h:145: error: parse error before `)' token
unistd.h:147: error: type specifier omitted for parameter `size_t'
unistd.h:149: error: parse error before `)' token
unistd.h:150: error: parse error before `)' token
unistd.h:151: error: parse error before `)' token
unistd.h:152: error: type specifier omitted for parameter `gid_t[]'
unistd.h:155: error: parse error before `)' token
unistd.h:156: error: parse error before `)' token
unistd.h:157: error: parse error before `)' token
unistd.h:158: error: parse error before `)' token
unistd.h:161: error: parse error before `,' token
unistd.h:165: error: parse error before `,' token
unistd.h:168: error: `gid_t' was not declared in this scope
unistd.h:169: error: `pid_t' was not declared in this scope
unistd.h:169: error: `pid_t' was not declared in this scope
unistd.h:170: error: parse error before `)' token
unistd.h:171: error: `uid_t' was not declared in this scope
unistd.h:174: error: parse error before `)' token
unistd.h:175: error: type specifier omitted for parameter `pid_t'
unistd.h:177: error: type specifier omitted for parameter `size_t'
unistd.h:179: error: parse error before `,' token
unistd.h:201: error: `u_long' was not declared in this scope
unistd.h:203: error: type specifier omitted for parameter `off_t'
unistd.h:208: error: parse error before `void'
unistd.h:211: error: parse error before `)' token
unistd.h:211: error: `pid_t' was not declared in this scope
unistd.h:212: error: `pid_t' was not declared in this scope
unistd.h:212: error: parse error before `)' token
unistd.h:215: error: type specifier omitted for parameter `off_t'
unistd.h:220: error: type specifier omitted for parameter `dev_t'
unistd.h:220: error: type specifier omitted for parameter `mode_t'
unistd.h:226: error: parse error before `,' token
unistd.h:235: error: type specifier omitted for parameter `fd_set'
unistd.h:235: error: parse error before `*' token
unistd.h:238: error: parse error before `,' token
unistd.h:247: error: parse error before `*' token
unistd.h:247: error: type specifier omitted for parameter `fd_set'
unistd.h:248: error: `gid_t' was not declared in this scope
unistd.h:249: error: `uid_t' was not declared in this scope
unistd.h:250: error: parse error before `*' token
unistd.h:256: error: parse error before `,' token
unistd.h:256: error: `pid_t' was not declared in this scope
unistd.h:257: error: `gid_t' was not declared in this scope
unistd.h:257: error: `gid_t' was not declared in this scope
unistd.h:258: error: `uid_t' was not declared in this scope
unistd.h:258: error: `uid_t' was not declared in this scope
unistd.h:259: error: `gid_t' was not declared in this scope
unistd.h:260: error: `uid_t' was not declared in this scope
unistd.h:262: error: type specifier omitted for parameter `u_long'
unistd.h:262: error: parse error before `*' token
unistd.h:267: error: type specifier omitted for parameter `off_t'
unistd.h:273: error: `size_t' was not declared in this scope
unistd.h:274: error: parse error before `)' token
unistd.h:280: error: type specifier omitted for parameter `size_t'
unistd.h:281: error: type specifier omitted for parameter `size_t'
unistd.h:283: error: type specifier omitted for parameter `uid_t'
unistd.h:283: error: type specifier omitted for parameter `gid_t'
unistd.h:283: error: parse error before `*' token
unistd.h:284: error: type specifier omitted for parameter `size_t'
time.h:90: error: 'time_t' is used as a type, but is not defined as a type.
time.h:69: error: 'int32_t' is used as a type, but is not defined as a type.
time.h:70: error: 'int32_t' is used as a type, but is not defined as a type.
time.h:121: error: parse error before `)' token
time.h:122: error: parse error before `*' token
time.h:123: error: `time_t' was not declared in this scope
time.h:123: error: `time_t' was not declared in this scope
time.h:124: error: parse error before `*' token
time.h:125: error: parse error before `*' token
time.h:126: error: parse error before `*' token
time.h:127: error: parse error before `*' token
time.h:128: error: `time_t' was not declared in this scope
time.h:128: error: parse error before `)' token
time.h:136: error: parse error before `*' token
time.h:137: error: parse error before `*' token
time.h:138: error: parse error before `*' token
time.h:139: error: `time_t' was not declared in this scope
time.h:139: error: 'time_t' is used as a type, but is not defined as a type.
time.h:143: error: `time_t' was not declared in this scope
time.h:143: error: 'time_t' is used as a type, but is not defined as a type.
time.h:144: error: parse error before `*' token
time.h:145: error: parse error before `*' token
thread_policy.h:154: error: 'uint32_t' is used as a type, but is not defined as a type.
thread_policy.h:155: error: 'uint32_t' is used as a type, but is not defined as a type.
thread_policy.h:156: error: 'uint32_t' is used as a type, but is not defined as a type.
signal.h:73: error: `pid_t' was not declared in this scope
signal.h:73: error: parse error before `)' token
signal.h:86: error: parse error before `)' token
signal.h:86: error: `pid_t' was not declared in this scope
signal.h:155: error: syntax error before `*' token
pthread.h:195: error: `attr' was not declared in this scope
pthread.h:195: error: `pthread_attr_t' was not declared in this scope
pthread.h:196: error: parse error before `*' token
pthread.h:198: error: parse error before `*' token
pthread.h:200: error: parse error before `*' token
pthread.h:202: error: parse error before `*' token
pthread.h:204: error: parse error before `*' token
pthread.h:206: error: parse error before `*' token
pthread.h:208: error: parse error before `*' token
pthread.h:210: error: parse error before `*' token
pthread.h:212: error: `attr' was not declared in this scope
pthread.h:212: error: `pthread_attr_t' was not declared in this scope
pthread.h:213: error: `pthread_attr_t' was not declared in this scope
pthread.h:213: error: `attr' was not declared in this scope
pthread.h:214: error: parse error before `)' token
pthread.h:215: error: `pthread_attr_t' was not declared in this scope
pthread.h:215: error: `attr' was not declared in this scope
pthread.h:216: error: parse error before `)' token
pthread.h:217: error: `pthread_attr_t' was not declared in this scope
pthread.h:217: error: `attr' was not declared in this scope
pthread.h:218: error: parse error before `*' token
pthread.h:219: error: `pthread_attr_t' was not declared in this scope
pthread.h:219: error: `attr' was not declared in this scope
pthread.h:220: error: parse error before `)' token
pthread.h:221: error: `pthread_attr_t' was not declared in this scope
pthread.h:221: error: `attr' was not declared in this scope
pthread.h:222: error: parse error before `*' token
pthread.h:223: error: `pthread_attr_t' was not declared in this scope
pthread.h:223: error: parse error before `)' token
pthread.h:223: error: `size_t' was not declared in this scope
pthread.h:223: error: `attr' was not declared in this scope
pthread.h:224: error: `size_t' was not declared in this scope
pthread.h:224: error: parse error before `)' token
pthread.h:224: error: `attr' was not declared in this scope
pthread.h:224: error: `pthread_attr_t' was not declared in this scope
pthread.h:225: error: `attr' was not declared in this scope
pthread.h:225: error: `pthread_attr_t' was not declared in this scope
pthread.h:226: error: parse error before `*' token
pthread.h:227: error: parse error before `)' token
pthread.h:227: error: `pthread_t' was not declared in this scope
pthread.h:231: error: `cond' was not declared in this scope
pthread.h:231: error: `pthread_cond_t' was not declared in this scope
pthread.h:232: error: `cond' was not declared in this scope
pthread.h:232: error: `pthread_cond_t' was not declared in this scope
pthread.h:233: error: `cond' was not declared in this scope
pthread.h:233: error: `pthread_cond_t' was not declared in this scope
pthread.h:234: error: parse error before `*' token
pthread.h:235: error: `cond' was not declared in this scope
pthread.h:235: error: `pthread_cond_t' was not declared in this scope
pthread.h:236: error: `cond' was not declared in this scope
pthread.h:236: error: `pthread_cond_t' was not declared in this scope
pthread.h:237: error: `mutex' was not declared in this scope
pthread.h:237: error: `pthread_mutex_t' was not declared in this scope
pthread.h:238: error: `cond' was not declared in this scope
pthread.h:238: error: `pthread_cond_t' was not declared in this scope
pthread.h:239: error: `mutex' was not declared in this scope
pthread.h:239: error: `pthread_mutex_t' was not declared in this scope
pthread.h:240: error: parse error before `*' token
pthread.h:241: error: `attr' was not declared in this scope
pthread.h:241: error: `pthread_condattr_t' was not declared in this scope
pthread.h:242: error: `attr' was not declared in this scope
pthread.h:242: error: `pthread_condattr_t' was not declared in this scope
pthread.h:243: error: parse error before `*' token
pthread.h:245: error: `attr' was not declared in this scope
pthread.h:245: error: `pthread_condattr_t' was not declared in this scope
pthread.h:246: error: parse error before `)' token
pthread.h:247: error: `thread' was not declared in this scope
pthread.h:247: error: `pthread_t' was not declared in this scope
pthread.h:248: error: parse error before `*' token
pthread.h:249: error: `pthread_create' declared as function returning a function
pthread.h:250: error: parse error before `void'
pthread.h:251: error: parse error before `)' token
pthread.h:251: error: `pthread_t' was not declared in this scope
pthread.h:252: error: parse error before `,' token
pthread.h:252: error: `pthread_t' was not declared in this scope
pthread.h:255: error: parse error before `)' token
pthread.h:255: error: `pthread_t' was not declared in this scope
pthread.h:257: error: parse error before `,' token
pthread.h:257: error: `pthread_t' was not declared in this scope
pthread.h:260: error: parse error before `,' token
pthread.h:260: error: `pthread_t' was not declared in this scope
pthread.h:262: error: `mutex' was not declared in this scope
pthread.h:262: error: `pthread_mutex_t' was not declared in this scope
pthread.h:263: error: parse error before `*' token
pthread.h:265: error: `mutex' was not declared in this scope
pthread.h:265: error: `pthread_mutex_t' was not declared in this scope
pthread.h:266: error: parse error before `*' token
pthread.h:267: error: `mutex' was not declared in this scope
pthread.h:267: error: `pthread_mutex_t' was not declared in this scope
pthread.h:268: error: `mutex' was not declared in this scope
pthread.h:268: error: `pthread_mutex_t' was not declared in this scope
pthread.h:269: error: parse error before `,' token
pthread.h:271: error: `mutex' was not declared in this scope
pthread.h:271: error: `pthread_mutex_t' was not declared in this scope
pthread.h:272: error: `mutex' was not declared in this scope
pthread.h:272: error: `pthread_mutex_t' was not declared in this scope
pthread.h:273: error: `attr' was not declared in this scope
pthread.h:273: error: `pthread_mutexattr_t' was not declared in this scope
pthread.h:274: error: parse error before `*' token
pthread.h:276: error: parse error before `*' token
pthread.h:278: error: parse error before `*' token
pthread.h:280: error: parse error before `*' token
pthread.h:282: error: `attr' was not declared in this scope
pthread.h:282: error: `pthread_mutexattr_t' was not declared in this scope
pthread.h:283: error: `attr' was not declared in this scope
pthread.h:283: error: `pthread_mutexattr_t' was not declared in this scope
pthread.h:284: error: parse error before `)' token
pthread.h:285: error: `attr' was not declared in this scope
pthread.h:285: error: `pthread_mutexattr_t' was not declared in this scope
pthread.h:286: error: parse error before `)' token
pthread.h:287: error: `attr' was not declared in this scope
pthread.h:287: error: `pthread_mutexattr_t' was not declared in this scope
pthread.h:288: error: parse error before `)' token
pthread.h:289: error: `attr' was not declared in this scope
pthread.h:289: error: `pthread_mutexattr_t' was not declared in this scope
pthread.h:290: error: parse error before `)' token
pthread.h:291: error: `pthread_once_t' was not declared in this scope
pthread.h:291: error: `once_control' was not declared in this scope
pthread.h:292: error: syntax error before `)' token
pthread.h:292: error: parse error before `)' token
pthread.h:292: error: `init_routine' was not declared in this scope
pthread.h:293: error: parse error before `)' token
pthread.h:294: error: parse error before `,' token
pthread.h:294: error: `pthread_t' was not declared in this scope
pthread.h:297: error: `key' was not declared in this scope
pthread.h:297: error: `pthread_key_t' was not declared in this scope
pthread.h:298: error: parse error before `*' token
pthread.h:298: error: `destructor' was not declared in this scope
pthread.h:299: error: `pthread_key_t' undeclared (first use this function)
pthread.h:299: error: parse error before `)' token
pthread.h:300: error: parse error before `,' token
pthread.h:302: error: parse error before `)' token
pthread.h:303: error: `pthread_attr_t' undeclared (first use this function)
pthread.h:303: error: parse error before `,' token
pthread.h:304: error: parse error before `,' token
pthread.h:307: error: `rwlock' undeclared (first use this function)
pthread.h:307: error: `pthread_rwlock_t' undeclared (first use this function)
pthread.h:309: error: parse error before `*' token
pthread.h:315: error: `attr' undeclared (first use this function)
pthread.h:315: error: `pthread_rwlockattr_t' undeclared (first use this function)
pthread.h:317: error: parse error before `*' token
pthread.h:320: error: parse error before `)' token
pthread.h:330: error: `pthread_t' undeclared (first use this function)
pthread.h:331: error: 'size_t' is used as a type, but is not defined as a type.
pthread.h:335: error: parse error before `,' token
pthread.h:335: error: `pthread_cond_t' undeclared (first use this function)
pthread.h:338: error: `cond' undeclared (first use this function)
pthread.h:339: error: `pthread_mutex_t' undeclared (first use this function)
pthread.h:339: error: `mutex' undeclared (first use this function)
pthread.h:340: error: parse error before `*' token
pthread.h:343: error: `thread' undeclared (first use this function)
pthread.h:344: error: parse error before `*' token
pthread.h:345: error: `pthread_create_suspended_np' declared as function returning a function
pthread.h:346: error: parse error before `void'
new:82: error: `size_t' undeclared in namespace `std'
new:82: error: declaration of `operator new' as non-function
new:82: error: invalid declarator
new:83: error: invalid declarator
new:83: error: declaration of `operator new []' as non-function
new:83: error: `size_t' undeclared in namespace `std'
new:86: error: parse error before `::' token
new:86: error: `size_t' undeclared in namespace `std'
new:87: error: parse error before `::' token
new:87: error: `size_t' undeclared in namespace `std'
new:92: error: `__p' undeclared (first use this function)
new:92: error: parse error before `*' token
new:92: error: `size_t' undeclared in namespace `std'
new:93: error: `size_t' undeclared in namespace `std'
new:93: error: parse error before `*' token
gthr-default.h:40: error: syntax error before `;' token
gthr-default.h:41: error: syntax error before `;' token
gthr-default.h:42: error: syntax error before `;' token
gthr-default.h:98: error: cannot declare static function inside another function
gthr-default.h:450: confused by earlier errors, bailing out
gthr-default.h:450: error: parse error before `)' token
gthr-default.h:450: error: `func' undeclared (first use this function)
gthr-default.h:450: error: `once' undeclared (first use this function)
gthr-default.h:450: error: `__gthread_once_t' undeclared (first use this function)
gthr-default.h:450: error: `__gthread_once' declared as an `inline' variable
ctime:66: error: `clock_t' not declared
ctime:67: error: `time_t' not declared
ctime:70: error: `clock' not declared
ctime:72: error: `mktime' not declared
ctime:73: error: `time' not declared
ctime:78: error: `strftime' not declared
cstring:79: error: `memcpy' not declared
cstring:80: error: `memmove' not declared
cstring:81: error: `strcpy' not declared
cstring:82: error: `strncpy' not declared
cstring:83: error: `strcat' not declared
cstring:84: error: `strncat' not declared
cstring:85: error: `memcmp' not declared
cstring:86: error: `strcmp' not declared
cstring:87: error: `strcoll' not declared
cstring:88: error: `strncmp' not declared
cstring:89: error: `strxfrm' not declared
cstring:90: error: `strcspn' not declared
cstring:91: error: `strspn' not declared
cstring:92: error: `strtok' not declared
cstring:93: error: `memset' not declared
cstring:94: error: `strerror' not declared
cstring:95: error: `strlen' not declared
cstring:97: error: `memchr' not declared
cstring:100: error: parse error before `)' token
cstring:100: error: type specifier omitted for parameter `size_t'
cstring:101: error: `__n' undeclared (first use this function)
cstring:101: error: `__c' undeclared (first use this function)
cstring:101: error: `__p' undeclared (first use this function)
cstring:103: error: `strchr' not declared
cstring:109: error: `strpbrk' not declared
cstring:115: error: `strrchr' not declared
cstring:121: error: `strstr' not declared
cstdlib:86: error: `div_t' not declared
cstdlib:87: error: `ldiv_t' not declared
cstdlib:89: error: `abort' not declared
cstdlib:90: error: `abs' not declared
cstdlib:91: error: `atexit' not declared
cstdlib:92: error: `atof' not declared
cstdlib:93: error: `atoi' not declared
cstdlib:94: error: `atol' not declared
cstdlib:95: error: `bsearch' not declared
cstdlib:96: error: `calloc' not declared
cstdlib:97: error: `div' not declared
cstdlib:98: error: `exit' not declared
cstdlib:99: error: `free' not declared
cstdlib:100: error: `getenv' not declared
cstdlib:101: error: `labs' not declared
cstdlib:102: error: `ldiv' not declared
cstdlib:103: error: `malloc' not declared
cstdlib:104: error: `mblen' not declared
cstdlib:105: error: `mbstowcs' not declared
cstdlib:106: error: `mbtowc' not declared
cstdlib:107: error: `qsort' not declared
cstdlib:108: error: `rand' not declared
cstdlib:109: error: `realloc' not declared
cstdlib:110: error: `srand' not declared
cstdlib:111: error: `strtod' not declared
cstdlib:112: error: `strtol' not declared
cstdlib:113: error: `strtoul' not declared
cstdlib:114: error: `system' not declared
cstdlib:115: error: `wcstombs' not declared
cstdlib:116: error: `wctomb' not declared
cstdlib:119: error: `labs' undeclared (first use this function)  (Each undeclared identifier is reported only once for each function it appears in.)
cstdlib:122: error: syntax error before `(' token
cstdio:99: error: `FILE' not declared
cstdio:100: error: `fpos_t' not declared
cstdio:102: error: `clearerr' not declared
cstdio:103: error: `fclose' not declared
cstdio:104: error: `feof' not declared
cstdio:105: error: `ferror' not declared
cstdio:106: error: `fflush' not declared
cstdio:107: error: `fgetc' not declared
cstdio:108: error: `fgetpos' not declared
cstdio:109: error: `fgets' not declared
cstdio:110: error: `fopen' not declared
cstdio:111: error: `fprintf' not declared
cstdio:112: error: `fputc' not declared
cstdio:113: error: `fputs' not declared
cstdio:114: error: `fread' not declared
cstdio:115: error: `freopen' not declared
cstdio:116: error: `fscanf' not declared
cstdio:117: error: `fseek' not declared
cstdio:118: error: `fsetpos' not declared
cstdio:119: error: `ftell' not declared
cstdio:120: error: `fwrite' not declared
cstdio:121: error: `getc' not declared
cstdio:122: error: `getchar' not declared
cstdio:123: error: `gets' not declared
cstdio:124: error: `perror' not declared
cstdio:125: error: `printf' not declared
cstdio:126: error: `putc' not declared
cstdio:127: error: `putchar' not declared
cstdio:128: error: `puts' not declared
cstdio:129: error: `remove' not declared
cstdio:130: error: `rename' not declared
cstdio:131: error: `rewind' not declared
cstdio:132: error: `scanf' not declared
cstdio:133: error: `setbuf' not declared
cstdio:134: error: `setvbuf' not declared
cstdio:135: error: `sprintf' not declared
cstdio:136: error: `sscanf' not declared
cstdio:137: error: `tmpfile' not declared
cstdio:138: error: `tmpnam' not declared
cstdio:139: error: `ungetc' not declared
cstdio:140: error: `vfprintf' not declared
cstdio:141: error: `vprintf' not declared
cstdio:142: error: `vsprintf' not declared
cstddef:52: error: `ptrdiff_t' not declared
cstddef:53: error: `size_t' not declared
cstdarg:57: error: `va_list' not declared
cctype:100: error: `tolower' not declared
cctype:101: error: `toupper' not declared
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Things to check
* is there a syntax error immediately prior to the #include of the system file, or at the end of the file included immediately prior to the system file?
* is something defining (as a macro, via #define or -D) a word which is used in those system headers?

Debugging technique:
* Use Xcode's "preprocess" command (aka gcc -E) on the source file that the errors are related to, then look through the file by hand for the code that's causing the error (the error message will narrow your search).
Quote this message in a reply
Sage
Posts: 1,066
Joined: 2004.07
Post: #3
Well, there aren't any syntax errors, but Ogre does use some preprocessor commands before including the files. Here's what's there (OgrePrerequisites.h):
Code:
#ifndef __Prerequisites_H__
#define __Prerequisites_H__

// undefine this to not require new angular units where applicable
#define OGRE_FORCE_ANGLE_TYPES

// Platform-specific stuff
#include "OgrePlatform.h"

#if OGRE_COMPILER == OGRE_COMPILER_MSVC
// Turn off warnings generated by long std templates
// This warns about truncation to 255 characters in debug/browse info
#   pragma warning (disable : 4786)

// Turn off warnings generated by long std templates
// This warns about truncation to 255 characters in debug/browse info
#   pragma warning (disable : 4503)

// disable: "conversion from 'double' to 'float', possible loss of data
#   pragma warning (disable : 4244)

// disable: "truncation from 'double' to 'float'
#   pragma warning (disable : 4305)

// disable: "<type> needs to have dll-interface to be used by clients'
// Happens on STL member variables which are not public therefore is ok
#   pragma warning (disable : 4251)

// disable: "non dll-interface class used as base for dll-interface class"
// Happens when deriving from Singleton because bug in compiler ignores
// template export
#   pragma warning (disable : 4275)

// disable: "C++ Exception Specification ignored"
// This is because MSVC 6 did not implement all the C++ exception
// specifications in the ANSI C++ draft.
#   pragma warning( disable : 4290 )

// disable: "no suitable definition provided for explicit template
// instantiation request" Occurs in VC7 for no justifiable reason on all
// #includes of Singleton
#   pragma warning( disable: 4661)

// disable: deprecation warnings when using CRT calls in VC8
// These show up on all C runtime lib code in VC8, disable since they clutter
// the warnings with things we may not be able to do anything about (e.g.
// generated code from nvparse etc). I doubt very much that these calls
// will ever be actually removed from VC anyway, it would break too much code.
#    pragma warning( disable: 4996)
#endif

/* Include all the standard header *after* all the configuration
   settings have been made.
*/
#include "OgreStdHeaders.h"
,,,

Here's OgreStdHeaders.h:
Code:
#ifndef __StdHeaders_H__
#define __StdHeaders_H__

#ifdef __BORLANDC__
    #define __STD_ALGORITHM
#endif

#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <cstdarg>
#include <cmath>

// STL containers
#include <vector>
#include <map>
#include <string>
#include <set>
#include <list>
#include <deque>
#include <queue>
#include <bitset>

// Note - not in the original STL, but exists in SGI STL and STLport
#if (OGRE_COMPILER == OGRE_COMPILER_GNUC) && !defined(STLPORT)
#   include <ext/hash_map>
#   include <ext/hash_set>
#else
#   include <hash_set>
#   include <hash_map>
#endif

// STL algorithms & functions
#include <algorithm>
#include <functional>
#include <limits>

// C++ Stream stuff
#include <fstream>
#include <iostream>
#include <iomanip>
#include <sstream>

#ifdef __BORLANDC__
namespace Ogre
{
    using namespace std;
}
#endif

extern "C" {

#   include <sys/types.h>
#   include <sys/stat.h>

}

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#  undef min
#  undef max
#  if defined( __MINGW32__ )
#    include <unistd.h>
#  endif
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX
extern "C" {

#   include <unistd.h>
#   include <dlfcn.h>

}
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
extern "C" {
#   include <unistd.h>
#   include <sys/param.h>
#   include <CoreFoundation/CoreFoundation.h>
}
#endif

#if OGRE_THREAD_SUPPORT
#    include <boost/thread/recursive_mutex.hpp>
#endif

#endif
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
You're going to need to do the "preprocess" thing, I think.
Quote this message in a reply
Post Reply