|
Allegro in Headers |
SkaxCo
Member #8,323
February 2007
|
I'm working on my program when all of a sudden...it doesn't build. I mess around, and find out it can't include allegro.h in my header file BUT! its been working fine for ages. It also works in the main body of the program. It is really annoying...anyone know why it would work in main but not in a header? |
kazzmir
Member #1,786
December 2001
|
post the error |
SkaxCo
Member #8,323
February 2007
|
Now it isn't working in main() either... Unhandled exception at 0x10028b32 in Dodge III.exe: 0xC0000005: Access violation reading location 0x0000001c. |
kazzmir
Member #1,786
December 2001
|
You have a segfault or some other exception. This has nothing to do with including allegro.h in your game. You are using memory in an incorrect way or something similar. |
SkaxCo
Member #8,323
February 2007
|
Hold on, I'll show you the code that is in the program:
|
X-G
Member #856
December 2000
|
buffy isn't created anywhere. -- |
SkaxCo
Member #8,323
February 2007
|
/*FUN-NESS*/ BITMAP *buffy; Oh! Yeah! In the header buffy = creat_bitm.... Now it returns: Unhandled exception at 0x1002061b in Dodge III.exe: 0xC0000005: Access violation reading location 0x00000038. THe only difference in code is: |
X-G
Member #856
December 2000
|
... wait, what? In a header? No. -- |
SkaxCo
Member #8,323
February 2007
|
Nonono there is no header anymore. |
Steve Terry
Member #1,989
March 2002
|
Quote: OK: it works if I take out buffy. WHy? ... because she's a vampire slayer? ___________________________________ |
julian_boolean
Member #8,201
January 2007
|
Kinda ironic that the Wikipedia's featured article is Buffy the Vampire Slayer. |
SkaxCo
Member #8,323
February 2007
|
... |
Jonatan Hedborg
Member #4,886
July 2004
|
Where do you create your "buffy"? If you change your code, specify what you have changed exactly (or even better, post it again, with the changes).
|
|