Hello guys,
I've just installed Allegro (with several problems I could finally solve) and wanted to try it out.
I'm using VS 2003.net where I added all Allegro include paths. I wrote a dummy program just to check if the include file were found:
#include <allegro.h>
int main(int argc, char* argv[])
{
return 0;
}
It seems that the include file allegro.h can be found but I got another error:
c:\allegro\include\allegro\platform\astdint.h(30): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
Where can I find this file, as far as I know it's not a C++ but a C file?
Do I have to install any other libraries to make allegro work?
Thanks and best wishes,
Manfred
stdint is part of C99, visual studio doesn't support this. Have you ran 'fix msvc'?
If you downloaded the visual studio binaries then this should have been done.
I don't know the internals but I think if allegro doesn't have this then it uses it's own, unless you're using a later version of allegro than I have, in which case it might be a case of the developers not testing with VS.
If all else fails, get the file listed here:
http://en.wikipedia.org/wiki/Stdint.h
I added the MinGW includes to the include search path. Now all files are found but I got another problem:
C:\Programme\MinGW\include\stdlib.h(312): error C2373: '__restrict__': Redefinition; different modifiers
I don't expect stdlib.h to contain an error. Or are the includes in MinGW different from them Allegro wants?
Don't include mingw if you're compiling with msvc.
Assuming you've run 'fix msvc', just download the file I mentioned which is linked from wikipedia and stick that in your include path. All allegro wants with that file is the size of types I think.
I tried 'fix mingw32' and using gcc what also didn't help.
When I entered 'fix msvc7 --crlf' at first the file "mspdb80.dll" wasn't found. So I downloaded it and copied it to C:\WINDOWS\systen32 and this error didn't occur anymore. But there are still other errors:
C:\allegro>fix msvc7 --crlf
Configuring Allegro for Windows/MSVC7...
Your MSVCDir environment variable is not set!
Converting MSVCDir path...
msvchelp: Given argument does not correspond to any enviroment variable name!
Converting Allegro files to DOS CR/LF format...
Der Befehl "utod" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "utod" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Done!
It says that my MSVCDir environment variable isn't set so i added a variable called MSVCDir to the env. vars and defined it as my VC2003.net installation directory. This didn't change anything, the error still occured.
It also says that the command "utod" is spelled incorrectly or wasn't found.
I also downloded the files stdint.h and inttypes.h. I tried the MS specific ones as well as the cross platform but neither the first nor the second worked.
I tried to complie the file using gcc but this also wasn't successful.
C:\Dokumente und Einstellungen\Privat\Desktop>gcc Kpt8_5.cpp -o Kpt8_5.exe
C:/Programme/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):ma
in.c:(.text+0x104): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
What can I do to make Allegro work:'(?
Within the group created by visual studio there is a 'visual studio command prompt'. Run this instead of your normal command window and all will be set.
Alternatively, in your dos box, enter 'vcvars32' or 'vsvars32' to do the same.
But if you've got msvc allegro build from the files section of this site then you don't have to do any of this.