Using the Mac OS Multithreaded Engine

BlitzMax Forums/BlitzMax OpenGL Programming/Using the Mac OS Multithreaded Engine

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I inserted only that one line into the exact place suggested and saved the file. Built modules, and it still comes up saying: "Compile Error 2: error: invalid preprocessing directive #Include", and points to the first line of the .m file. Also it looks as though in the debug window it has LOTS of errors compiling, almost as if it thinks perhaps the sourcecode is a blitzmax source not an objective c source? I did not append anything to the filename. I tried editing the source using a text editor also and that did nothing different.

I get all these errors:
Building Modules
Compiling:glgraphics.macos.m
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:2:2: error: invalid preprocessing directive #Include
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:3:2: error: invalid preprocessing directive #Include
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:4:2: error: invalid preprocessing directive #Include
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:6:2: error: invalid preprocessing directive #Include
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:23: error: cannot find interface declaration for 'NSWindow', superclass of 'BBGLWindow'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:25: error: stray '@' in program
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:26: error: parse error before 'AT_NAME' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:36: error: parse error before 'BOOL'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:40: error: stray '@' in program
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:42: error: syntax error before 'typedef'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:45: error: parse error before 'Int'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:49: error: parse error before '*' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:50: error: parse error before '}' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:55: error: parse error before 'oldDisplayMode'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:57: error: syntax error before 'void'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:60: error: parse error before 'Int'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:63: error: parse error before '_initAttrs'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:63: error: parse error before 'attrs'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function '_initAttrs':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:64: error: 'Int' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:64: error: (Each undeclared identifier is reported only once
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:64: error: for each function it appears in.)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:64: error: parse error before 'n'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:65: error: 'flags' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:65: error: parse error before 'attrs'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:66: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:66: error: 'attrs' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:66: error: 'n' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: parse error before '&' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'If':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: 'attrs' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: 'n' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: 'kCGLPFADepthSize' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:68: error: parse error before '&' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:68: error: redefinition of 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: previous definition of 'If' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'If':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:68: error: 'attrs' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:68: error: 'n' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:68: error: 'kCGLPFAStencilSize' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:69: error: parse error before '&' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:69: error: redefinition of 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: previous definition of 'If' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'If':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:69: error: 'attrs' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:69: error: 'n' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:69: error: 'kCGLPFAAccumSize' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:70: error: parse error before '&' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:70: error: redefinition of 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: previous definition of 'If' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'If':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:71: error: 'attrs' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:71: error: 'n' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:71: error: 'kCGLPFAFullScreen' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:72: error: 'kCGLPFADisplayMask' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:73: error: 'kCGDirectMainDisplay' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:74: error: syntax error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:77: error: 'n' undeclared here (not in a function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:78: error: parse error before 'n'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:81: error: parse error before '*' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function '_sharedContext':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:82: error: nested functions are disabled, use -fnested-functions to re-enable
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:82: error: syntax error before '*' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:83: error: 'NSOpenGLPixelFormat' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:83: error: 'glFormat' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:84: error: 'CGLPixelFormatAttribute' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:84: error: parse error before 'attrs'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:86: error: '_context' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:86: error: parse error before 'Return'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:91: error: 'NSOpenGLContext' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:93: error: parse error before 'bbExThrowCString'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:95: error: 'Return' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function '_validateSize':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:99: error: 'NSRect' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:99: error: parse error before 'rect'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:101: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:101: error: parse error before 'Return'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:103: error: 'rect' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:103: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:104: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:104: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:104: error: parse error before 'Return'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:106: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:107: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:109: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:109: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:109: error: parse error before 'update'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function '_validateContext':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:113: error: 'Int' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:113: error: parse error before 'flags'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:114: error: 'NSOpenGLContext' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:114: error: 'shared' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:116: error: 'NSOpenGLPixelFormat' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:116: error: 'glFormat' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:117: error: 'CGLPixelFormatAttribute' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:117: error: parse error before 'attrs'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:119: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:119: error: parse error before 'Return'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:121: error: 'flags' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:121: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:124: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:125: error: 'Case' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:125: error: parse error before 'MODE_DISPLAY'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:136: error: parse error before 'bbExThrowCString'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:138: error: 'kCGLCEMPEngine' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:140: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:141: error: parse error before 'MODE_WIDGET'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:144: error: parse error before 'MODE_WINDOW'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:147: error: parse error before 'MODE_DISPLAY'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:152: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:155: error: parse error before 'bbGLGraphicsGraphicsModes'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:155: error: parse error before '*' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsGraphicsModes':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:156: error: 'Int' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:156: error: parse error before 'i'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:157: error: 'CFArrayRef' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:159: error: 'displayModeArray' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:159: error: 'kCGDirectMainDisplay' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:160: error: 'sz' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:162: error: 'i' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:162: error: 'count' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:162: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:165: error: 'CFDictionaryRef' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:168: error: 'displayMode' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:168: error: parse error before 'CFArrayGetValueAtIndex'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:170: error: 'number' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:170: error: 'kCGDisplayBitsPerPixel' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:171: error: 'kCFNumberLongType' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:171: error: 'depth' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:173: error: parse error before 'Continue'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:175: error: 'kCGDisplayWidth' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:176: error: 'width' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:178: error: 'kCGDisplayHeight' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:179: error: 'height' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:181: error: 'kCGDisplayRefreshRate' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:182: error: 'hertz' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:184: error: 'modes' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:191: error: parse error before 'n'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:194: error: parse error before '*' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsAttachGraphics':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:195: error: 'NSRect' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:195: error: parse error before 'rect'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:198: error: 'rect' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:200: error: parse error before 'BBGLContext'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:201: error: parse error before 'BBGLContext'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:203: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:204: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:205: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:206: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:206: error: 'flags' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:207: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:209: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:211: error: 'Return' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:211: error: parse error before 'context'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:214: error: parse error before 'width'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsCreateGraphics':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:215: error: 'Int' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:215: error: parse error before 'mode'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:219: error: 'depth' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:219: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:223: error: 'kCGDirectMainDisplay' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:224: error: 'CFTypeRef' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:224: error: parse error before 'oldDisplayMode'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:226: error: 'hertz' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:226: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:228: error: syntax error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:231: error: parse error before '(' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:233: error: parse error before string constant
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:237: error: parse error before '}' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:237: error: syntax error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:241: error: 'NSTitledWindowMask' undeclared here (not in a function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:241: error: 'NSClosableWindowMask' undeclared here (not in a function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:242: error: 'width' undeclared here (not in a function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:242: error: 'height' undeclared here (not in a function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:242: error: initializer element is not constant
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:244: error: conflicting types for 'window'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:48: error: previous declaration of 'window' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:248: error: 'NSBackingStoreBuffered' undeclared here (not in a function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:248: error: initializer element is not constant
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:250: error: parse error before '!' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:257: error: redefinition of 'mode'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:236: error: previous definition of 'mode' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:258: error: parse error before '}' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:260: error: parse error before 'BBGLContext'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:261: error: parse error before numeric constant
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:273: error: parse error before '==' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:273: error: conflicting types for '_displayContext'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:53: error: previous declaration of '_displayContext' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:273: error: initializer element is not constant
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:275: error: parse error before 'context'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:278: error: parse error before 'Int'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsGetSettings':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:280: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:281: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:282: error: 'depth' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:282: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:283: error: 'hertz' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:283: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:284: error: 'flags' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:284: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsClose':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:288: error: parse error before 'bbGLGraphicsSetGraphics'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:290: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:291: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:293: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:293: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:295: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:296: error: parse error before 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:296: error: parse error before '==' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:296: error: redefinition of 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: previous definition of 'If' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'If':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:297: error: 'kCGDirectMainDisplay' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:298: error: 'CFTypeRef' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:298: error: parse error before 'oldDisplayMode'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:306: error: parse error before '}' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsSetGraphics':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:309: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:312: error: dereferencing pointer to incomplete type
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:313: error: syntax error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:316: error: conflicting types for '_currentContext'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:52: error: previous declaration of '_currentContext' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:316: error: initializer element is not constant
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:317: error: parse error before '}' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:319: error: parse error before 'sync'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsFlip':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:321: error: nested functions are disabled, use -fnested-functions to re-enable
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:321: error: syntax error before '_sync'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:323: error: parse error before 'Return'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:325: error: 'sync' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:326: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:326: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:328: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:328: error: 'Long' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:328: error: parse error before ')' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:328: error: 'kCGLCPSwapInterval' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:331: error: parse error before '[' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'bbGLGraphicsSwapSharedContext':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:336: error: parse error before 'Return'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:338: error: 'NSOpenGLContext' undeclared (first use in this function)
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:338: error: parse error before '{' token
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:340: error: parse error before 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:340: error: redefinition of 'If'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:67: error: previous definition of 'If' was here
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: In function 'If':
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:341: error: invalid type argument of '->'
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m: At top level:
/Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m:342: error: syntax error before '{' token
Build Error: failed to compile /Applications/BlitzMax/mod/brl.mod/glgraphics.mod/glgraphics.macos.m
Process complete