Allegro Problem
-
#include <allegro.h> #pragma comment(lib,"alleg.lib") int main() { return 0; }
Fehlermeldungen:
------ Build started: Project: Allegro_1, Configuration: Debug Win32 ------
Compiling...
main.c
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\internal\alconfig.h(296) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\internal\alconfig.h(303) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(251) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(265) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned char *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(276) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(290) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(301) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(315) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned short *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(351) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned long *' of greater size
d:\Programme\Microsoft Visual Studio .NET 2003\Vc7\include\allegro\inline\draw.inl(365) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'unsigned long *' of greater size
Linking...
LIBCD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
Debug/Allegro_1.exe : fatal error LNK1120: 1 unresolved externalsBuild log was saved at "file://g:\Entwicklung\VisualC++\Allegro_1\Debug\BuildLog.htm"
Allegro_1 - 2 error(s), 10 warning(s)---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
Kann mir da jemand helfen was ich hier falsch mache? ich hab VS 7.1 .NET