Skip to main content
GameDev.net gamedev.net
🔒 Locked

C++ Allegro compiler errors [solved]

Started by ildave1 Aug 8, 2005 at 12:00 PM 2 replies 2.6k views
Original Post
ildave1
ildave1
Well, I am fairly sure I have allegro working correctly because I can do some simple things using the library. However, when I compile (using visual c++ 8 beta), Im getting warnings like crazy and I am not sure why/what is causing them. Any ideas? I can still run the program, but I can't imagine having warnings like this being an O.K. thing. (errors from compiled code at the end of the post)
------ Build started: Project: AllegroT, Configuration: Debug Win32 ------
Compiling...
AllegroT.cpp
c:\program files\microsoft visual studio 8\vc\include\allegro\internal\alconfig.h(296) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\internal\alconfig.h(303) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(251) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(265) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(276) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(290) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(301) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(315) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(351) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned long *' of greater size
c:\program files\microsoft visual studio 8\vc\include\allegro\inline\draw.inl(365) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned long *' of greater size



Thanks in advance for any assistance. [Edited by - ildave1 on August 8, 2005 2:10:33 PM]
AsOne
AsOne
Turn off '64-bit compatibility warnings' in the compiler settings.
AsOne
AsOne
Thanks! I had no idea what the heck was going on either when I first got these warning messages.

[Edited by - AsOne on August 9, 2005 1:10:21 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.