--- shaulka@... wrote: > Anyone tried to compile libv-1.27 with
> I had no problems with 2.95, but with 3.1 it doesn't complie out of
> the box and I don't know how to fix it?
> Shaul Karl, shaulka@... e t
G++ 3.1 has fixed some bugs with __stdcall attribute. This change in vapp.cpp
(and similar one in vapp.h) is necessary, otherwise you will get invalid
conversion error, since WinMain uses __stdcall convention.
--- vapp.cpp~ Thu Jul 18 14:10:45 2002
+++ vapp.cpp Thu Jul 18 14:12:11 2002
@@ -58,7 +58,7 @@
// This forces the GNU Linker to include vstartup.o in the executable
// Only needed here for the static library, for DLL use it must be
// in one of the Applications object files -> see vApp.h
- int (*gnuw32dummy)(HINSTANCE,HINSTANCE,LPSTR,int) = WinMain;
+ int (APIENTRY *gnuw32dummy)(HINSTANCE,HINSTANCE,LPSTR,int) = WinMain;
#if defined( __BORLANDC__)
http://www.sold.com.au - SOLD.com.au
- Find yourself a bargain!
Get latest updates about Open Source Projects, Conferences and News.