|
From: LIM Fung-C. <lim...@gm...> - 2011-06-20 07:01:02
|
Hi, I am encountering lots of compiler error messages when compiling VirtualDimension from CVS (cvs -z3 -d:pserver:ano...@vi...:/cvsroot/virt-dimension co -P VirtualDimension after logging in anonymously; see http://sourceforge.net/scm/?type=cvs&group_id=74581). I am using the latest MinGW software (mingw-get-inst-20110530.exe). I traced the problem to a circular dependency between oaidl.h and oleauto.h. The error messages disappeared when I applied the following patch. --- oaidl.h~ 2011-03-26 11:45:55.000000000 +0800 +++ oaidl.h 2011-06-20 14:00:27.097726100 +0800 @@ -1,14 +1,14 @@ +#ifndef COM_NO_WINDOWS_H +#include <windows.h> +#include <ole2.h> +#endif + #ifndef _OAIDL_H #define _OAIDL_H #if __GNUC__ >= 3 #pragma GCC system_header #endif -#ifndef COM_NO_WINDOWS_H -#include <windows.h> -#include <ole2.h> -#endif - #ifdef __cplusplus extern "C" { #endif I managed to build VirtualDimension. However, I couldn't launch VirtualDimension by double-clicking on its icon; I get the message The program can't start because libgcc_s_dw2-1.dll is missing from your computer. Try reinstalling the program to fix this problem. Does this mean that the gcc dll needs to be distributed with the VirtualDimension binary? I thought this is against the minimalistic principle of MinGW. Please advise on this and the above patch. Thank you. Regards, Fung Chai. -- FWIW: $\lnot \exists x \, {\rm Right} (x) \leftarrow \forall x \, {\rm Wrong} (x)$ \hfill -- Stephen Stills Freedom's just another word for nothin' left to lose -- Kris Kristofferson |