Hey after going through some Allegro 4.2 tuts, I decided to upgrade to Allegro 5 but I can't seem to get it working...here's what I did
1.Download the Binary version
2.Extracted the contents
3.Put everything in the lib folder to C:\Program Files\Visual Studio 9.0\VC\lib
3.Put everything in the include folder to
C:\Program Files\Visual Studio 9.0\VC\include
4.I didn't really know where to put the .h so I put it in the include folder
5.Put the .dll file in C:\Program Files\Visual Studio 9.0\VC\bin
Then I start up Visual Studio and I try to do a tutorial
And the error I got was
"fatal error C1083: Cannot open include file: 'inttypes.h': No such file or directory"
Any help is aprreciated thanks!
Please use <code></code> tags for code 
Other than that, I'm not entirely sure whats wrong, did you download the right binary package? The mingw version won't likely work with MSVC.
Oh sorry about that I thought it was [code][/code] I think I DL'd the right one I'll see again
EDIT: As it turns out it was the wrong one
thanks
EDIT2: Ok now that I got that to work Visual Studios it asked me where dxguid.lib and dxinput8.lib ( or something like that ) was and I dl'd the libs off a site so now it just gives me a buncha errors I dunno why..
EDIT3: Kay now it just gives me 16 errors now.. I don't get it, I've linked these libs: kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib psapi.lib dinput8.lib d3d9.lib dxguid.lib winmm.lib opengl32.lib
Here's my code and errors...
you need to link to allegro-4.9.16.lib and allegro_image-4.9.16.lib
K I've tried linking the .libs you told me to it justs says it doesn't know what it was...so I thought maybe I did it wrong so I tried DLing the Binary again and I'll see what happens...
Then I tried using SVN and cmake but I only got as far as right before I start to build and I type in
>cmake C:\allegro -G "Visual Studio 9 2008" -DSHARE=off
But then it justs says it doesn't know what C:\allegro is and means...
so far I'm just linking "kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib psapi.lib dinput8.lib d3d9.lib dxguid.lib winmm.lib opengl32.lib" but in allegro 4.2 I only need to link alld.lib...
Any help would be apreciated, this is making me mad...
when you run cmake what is the output it gives you?
also if you make you project dynamicaly linked instead of static you wont need to link to kernel32.lib or any of those, just allegro-4.9.16.lib and the other allegro libraries your project requires
Okay now for SVN its not working at all anymore for some reason
"Access is denied"
I'll try to binary version again...
What to you mean dynamically linked?
EDIT2: Okay okay I think I got most of it working now...all my unresolved errors are gone! Too bad that there are still errors...can someone help me with this, it was off a tutorial on Allegro Wiki, maybe I didn't link the right libs again...
Also adamk kromm what do you mean alleg-4.16libs? Like these?
allegro_audio-static-4.9.16.lib allegro_color-static-4.9.16.lib allegro_dialog-static-4.9.16.lib allegro_flac-static-4.9.16.lib allegro_font-static-4.9.16.lib allegro_image-static-4.9.16.lib allegro_memfile-static-4.9.16.lib allegro_physfs-static-4.9.16.lib allegro_primitives-static-4.9.16.lib allegro_ttf-static-4.9.16.lib allegro_vorbis-static-4.9.16.lib allegro-static-4.9.16.lib
Thanks for all you help guys and please bear with me, I have a feeling we're almost there...;D
With older versions of C you cannot define a variable in the middle of a block, e.g. line 65.
So its just the tutorials fault...okay!
EDIT: It clearly shows that the tutorials are out of date my bad...I'll just sprite rip till a good tutorial comes out then...:-/
So its just the tutorials fault...okay!
One could also argue that it's MSVC's fault for not supporting C99.
One possible work-around is to compile your code as C++ code. The alternative is to move the declarations to the top of the scope where they are used (which is where they belong anyway
).
Good point
I'll try doing that after I read the tuts
EDIT:Now that i read through some I its fine when I type something like this..
//Testing, hope this works... #define ALLEGRO_STATICLINK 1 #include <allegro5/allegro5.h> #include <allegro5/allegro_image.h> int main( int argc, char *argv[]) { al_init(); al_create_display(640, 480); return 0; } END_OF_MAIN()
And linking these files...
allegro-static-4.9.16.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib psapi.lib dinput8.lib d3d9.lib dxguid.lib winmm.lib opengl32.lib
But when I try to do other things like this:
I gives me an unresolved error
so I link like this:
allegro-static-4.9.16.lib allegro_image-static-4.9.16.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib ole32.lib psapi.lib dinput8.lib d3d9.lib dxguid.lib winmm.lib opengl32.lib
but it just gives me these errors any ideas? ( Sorry I'm such a noob at this -_-|)
Link to png.lib and jpeg.lib too.
Oh thanks, um I could make some tutorials if you want, though they won't be the best
... it would look something like this, with more explanation of course...
I suppose a simple hello world program in 4.9 would fit on the wiki, if there isn't one there already.
There is already one, just its out of date
Well then an update would be appreciated.
Ahh I can't seem to find out whats wrong with adding keyboard support
Can anyone help?
It doesn't give me errors or anything it justs doesn't exit when I press ESC and it doesn't display anything...the reference manual hard to understand
You might want to check the examples. That is NOT how you use the event api.
Oh okay, I tried to follow the 4.2 format, I'll check the examples