[AD] Allegro 4.0.3rc1+ MFC, bug? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi all,
just the other day, when trying to compile an old (I mean a pair of months
old) MFC + Allegro program, I couldn't. I get this error from MSVC6:
----
Compiling...
AlFunc.cpp
C:\Programa\VStudio\VC98\INCLUDE\winbase.h(1080) : error C2731: 'WinMain' :
function cannot be overloaded
C:\Programa\VStudio\VC98\INCLUDE\winbase.h(1075) : see declaration
of 'WinMain'
C:\Programa\VStudio\VC98\INCLUDE\winbase.h(1080) : error C2733: second C
linkage of overloaded function 'WinMain' not allowed
C:\Programa\VStudio\VC98\INCLUDE\winbase.h(1075) : see declaration
of 'WinMain'
----
This program used to compile with previous Allegro versions (4.0.x). In fact
I still have the executable, and it's linked against Allegro 4.0.x dll,
working if I use 4.0.3 dll.
I post it at allegro.cc and one of the answers I get is that I should define
ALLEGRO_NO_MAGIC_MAIN. I tried it, and it compiles! Which is funny, because
this wasn't needed before, breaking forward API compativility.
Oscar.
_______________________
http://www.oginer.tk
_________________________________________________________________
MSN. Más Útil Cada Día http://www.msn.es/intmap/