I'm having another go at building Pike on the windows platform. This time, I'm using msys plus rntcl to run the microsoft command line compiler. It's actually working out pretty well; I have all of the modules compiling, and there are only one or two minor problems there.
I'm into the main pike code now, and I've run into two problems:
1. the definition of do_pike_exit in main.h causes problems because the its declspec is different from that defined in pike_embed.h (from what I can tell. I temporarily commented the definition in main.h out so that I could continue with compilation.
2. fdlib doesn't compile because of the following error:
C:\msys\1.0\home\e10401\pike-7.7.21\src\fdlib.c(918) : error C2440: 'type cast' : cannot convert from 'PIKE_OFF_T' to 'LARGE_INTEGER' C:\msys\1.0\home\e10401\pike-7.7.21\src\fdlib.c(918) : error C2440: 'function' : cannot convert from 'LARGE_INTEGER *' to 'LARGE_INTEGER' C:\msys\1.0\home\e10401\pike-7.7.21\src\fdlib.c(918) : warning C4024: 'SetFilePointerEx' : different types for formal and actual parameter 2 C:\msys\1.0\home\e10401\pike-7.7.21\src\fdlib.c(918) : warning C4047: 'function' : 'PLARGE_INTEGER' differs in levels of indirection from 'int' C:\msys\1.0\home\e10401\pike-7.7.21\src\fdlib.c(918) : error C2198: 'SetFilePointerEx' : too few arguments for call through pointer-to-function CL returned error code 2.
Any thoughts?
Bill
1. Probably fixed.
2. Your line numbers doesn't match mine. Try again from CVS.
Looks like grubba revereted the noreturn changes.
1. The noreturn attribute must be on the prototype of the function, not the function itself.
2. It's not true in the embedding context, since no exit function is necessarily added as callback.
pike-devel@lists.lysator.liu.se