[Ecls-list] VC8 : strnlen dllimport function not allowed

Dean O'Connor dean.oconnor at ite.com.au
Wed Aug 16 14:41:38 UTC 2006


Thx. I tried adding that flag. I think you had the right idea but the 
generated config.h file kept #undef'ing it again :)
So I just commented out that strnlen function for now.
 
I tried to see how the scripts detect if strnlen exists (if that is what 
happens?), but I guess it fails with VC8.

So got past that point, but now getting compile errors for sockets.
I saw mention of winsock2.h in sockets.lisp ... but maybe its not being 
included.

;;; Note: Invoking external command:
;;; cl -MD -EHsc -DGC_DLL -nologo /Ox -DWIN32_LEAN_AND_MEAN 
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONONSTDC_NO_DEPRECATE -DE
CL_THREADS -DGC_BUILD  -I"../src"/c -I"../src"/h 
-I"D:/development/ecl/ecl-0.9i/msvc"  -I"D:/development/ecl/ecl-0.9i/ms
vc" -w -c "D:/development/ecl/ecl-0.9i/msvc/ext/sockets.c" 
-Fo"D:/development/ecl/ecl-0.9i/msvc/ext/sockets.obj"

sockets.c
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.h(42) : error C2027: use of 
undefined type 'sockaddr_in'
        D:/development/ecl/ecl-0.9i/msvc/ext/sockets.h(38) : see 
declaration of 'sockaddr_in'
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.h(46) : error C2037: left 
of 'sin_family' specifies undefined struct/union
'sockaddr_in'
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.h(46) : error C2065: 
'AF_INET' : undeclared identifier
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.h(47) : error C2037: left 
of 'sin_port' specifies undefined struct/union 's
ockaddr_in'
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.h(48) : error C2037: left 
of 'sin_addr' specifies undefined struct/union 's
ockaddr_in'
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.c(16) : error C2065: 
'WSADATA' : undeclared identifier
D:/development/ecl/ecl-0.9i/msvc/ext/sockets.c(16) : error C2146: syntax 
error : missing ';' before identifier 'wsadata'


cheers
dean

Goffioul Michael wrote:
>  
>
>     ------------------------------------------------------------------------
>     *From:* ecls-list-bounces at lists.sourceforge.net
>     [mailto:ecls-list-bounces at lists.sourceforge.net] *On Behalf Of
>     *Dean O'Connor
>     *Sent:* Monday 14 August 2006 11:57
>     *To:* ecls-list at lists.sourceforge.net
>     *Subject:* [Ecls-list] VC8 : strnlen dllimport function not allowed
>
>      
>     I had a stab at compiling ECL using 64 bit Windows (VC8) compiler.
>     The version is 0.9i from the tarball I think.
>     Have ECL_THREADS = 1.
>     I added a few compiler flags to both Makefile and gmp/Makefile
>     (see below) to shut VC8 up a bit.
>      
>     The error that stops the compiler is:
>     error C2491: 'strnlen' : definition of dllimport function not allowed
>     Anyone tried this ? 
>      
>
>  
> I think I also had that problem (but didn't commit the fix to CVS...). 
> You should be able
> to solve this by adding /DHAVE_STRNLEN to msvc/gmp/Makefile, at the CFLAGS
> macro definition.
>  
> Michael.
>  
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>   





More information about the ecl-devel mailing list