|
From: Mark J. <mj...@gm...> - 2005-06-20 05:57:14
|
Lloyd Dupont schrieb: > I'm trying to compile with GCC a very simple .NET loader. > (I'm using SDK.NET 2.0 beta 2) > the code is attached... > > Anyway there is an include of <mscoree.h> > it produces plenty of error kind of: > ../mscoree.h:487: error: syntax error before numeric constant > ../mscoree.h:487: warning: data definition has no type or storage class > > At line 487 there is something like that: > EXTERN_GUID(LIBID_mscoree, > 0x5477469e,0x83b1,0x11d2,0x8b,0x49,0x00,0xa0,0xc9,0xb7,0xc9,0xc4); > > Which means nothing to me... > Any idea about what the error could be? 1. Try using the Platform SDK headers. The EXTERN_GUID macro is defined in RpcNdr.h as: #if _MSC_VER >= 1100 #define EXTERN_GUID(itf,l1,s1,s2,c1,c2,c3,c4,c5,c6,c7,c8) \ EXTERN_C const IID DECLSPEC_SELECTANY itf = {l1,s1,s2,{c1,c2,c3,c4,c5,c6,c7,c8}} #else #define EXTERN_GUID(itf,l1,s1,s2,c1,c2,c3,c4,c5,c6,c7,c8) EXTERN_C const IID itf #endif 2. It might help to define INITGUID before you include all windows headers It might help because you have to define the GUIDs in you application because you cannot use Microsofts GUID libraries. Regards, Mark |