Syntax error
I keep getting a stupid syntax error...... "syntax error before `long'"
Here's the code:
http://pastebin.com/342587
here's all the errors I get:
Here's the code:
http://pastebin.com/342587
here's all the errors I get:
Code:
main.c:24: parse error before `long'
main.c:32: warning: implicit declaration of function `aglDeystroyPixelFormat'
main.c:32: `pixelFormat' undeclared (first use in this function) (Each undeclared identifier is reported only once for each function it appears in.)
main.c:35: parse error before `short'
main.c:46: `bufferRect' undeclared (first use in this function)
main.c:46: `left' undeclared (first use in this function)
main.c:47: `bottom' undeclared (first use in this function)
main.c:48: `width' undeclared (first use in this function)
main.c:49: `height' undeclared (first use in this function)
main.c:51: `context' undeclared (first use in this function)
Build failed (9 errors, 1 warning)Global warming is caused by hobos and mooses
You have to declare variables before doing anything else, I believe.
Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Since it's a .c file, if the compiler is old enough/has an old enough standard, then yes. (since you're still using Jaguar, it's possible) Otherwise it doesn't matter. It's something to try, anyway.
Thanks guys... I'm working with somebody elses code and I always declare the variables first.
*edit*
I get
So now I gota fix that...
*edit*
I get
Code:
/usr/bin/ld: Undefined symbols:
_aglDeystroyPixelFormatSo now I gota fix that...
Global warming is caused by hobos and mooses
Might I mention that Deystroy isn't a word?
Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Dude... you have no idea how much that helped.
Thanks guys!
Thanks guys!
Global warming is caused by hobos and mooses
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| syntax for C++ initializer list? | WhatMeWorry | 6 | 8,183 |
Jun 21, 2006 10:25 AM Last Post: NCarter |
|

