![]() |
|
Cannot find stdint.h |
Manfred
Member #10,386
November 2008
|
Hello guys, I've just installed Allegro (with several problems I could finally solve) and wanted to try it out. #include <allegro.h> int main(int argc, char* argv[]) 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? Thanks and best wishes, |
Neil Walker
Member #210
April 2000
![]() |
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: Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Manfred
Member #10,386
November 2008
|
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? |
Neil Walker
Member #210
April 2000
![]() |
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. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Manfred
Member #10,386
November 2008
|
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 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. 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 What can I do to make Allegro work:'(? |
Neil Walker
Member #210
April 2000
![]() |
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. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
|