From: brutus <mad...@gm...> - 2003-10-16 18:46:16
|
Yeoh HS wrote in Re: [Nasm-users] winsock problem & strange errors: > I tried to compile EchoClient.asm and got a type not defined. > The error is in line 60 > wsaData resb WSAdata_size ; stores data about WinSock > > I checked the definition of WSAdata in win32n.inc and found > that it is WSADATA. > So I changed this line to: > wsaData resb WSADATA_size ; stores data about WinSock > > After this EchoClient.asm compiles and links without any > problems. :-) WSAdata_size works for me since it is defined as WSAdata in my include file. This is the WIN32N.INC i used: Win32.inc for NASM 1999 version 0.06 by Tamas Kaproncai [to...@sz...] MD5: FF818A0C2C2D76E8F68D3DDA1E7676BD WIN32N.INC And WSAdata is defined as: STRUC WSAdata .wVersion RESW 1 .wHighVersion RESW 1 .szDescription RESB WSADESCRIPTION_LEN+1 .szSystemStatus RESB WSASYS_STATUS_LEN+1 .iMaxSockets RESW 1 .iMaxUdpDg RESW 1 .lpVendorInfo RESD 1 ENDSTRUC Yeoh HS wrote in [Nasm-users] Mulitple versions of win32n.inc: > My version is: > WINDOWS.INC for 32 bit NASM (Version 1.26e) Release 07 Jul 2003 ;; > This is the NASM(XSTRUCed) version of WINDOWS.INC by sheroc & Jibz ;; > > The other include file I have is nagoa.inc: > NAGOA.INC for NASM based on win32n.inc version 0.06 by Tamas Kaproncai [to...@sz...] > ================================================================= > by PedroGC version 2 ABRIL 2003 > > These two include files appear to be updated in 2003 so I think I'll stick > with these. Other "non-standard" macros, including my own, I think it's best > to put them in a separate file for inclusion. :-) mine seems older so i will probably end useing one of those you mentioned above. > I wish there were a de facto standard. It would make code sharing and > re-useability much easier. :-) i absolutely agree! but i'm clueless which one is to be used. i just want to use nasm from the commandline paired with whatever linker fit's. with as less tools and extra stuff added as possible. so, as i know nothing about all those packages you mentioned, but will satrt google soon, i'm interested which you will recommend. later brutus |