1
您好,我在編譯NASM代碼時遇到了結構問題。Windows套接字asm:上下文堆棧爲空
這是我的結構定義和聲明:
struc wsa_data_struct
.wVersion resw 1
.wHighVersion resw 1
.szDescription resb WSADESCRIPTION_LEN
.szSystemStatus resb WSASYS_STATUS_LEN
.iMaxSckets resw 1
.ImaxUdpDg resw 1
.lpVendorInfo resb 1
.size
endstruc
wsa_dat:
istruc
at wsa_data_struct.wVersion, dw 0
at wsa_data_struct.wHighVersion, dw 0
at wsa_data_struct.szDescription, db 0
at wsa_data_struct.szSystemStatus, db 0
at wsa_data_struct.iMaxSckets, dw 0
at wsa_data_struct.ImaxUdpDg, dw 0
at wsa_data_struct.lpVendorInfo, db 0
iend
,當我嘗試編譯我的代碼,這個錯誤彈出:
error: (at:1) `%$strucname': context stack is empty
error: (at:1) `%$strucstart': context stack is empty
error: (at:1) `%$strucname': context stack is empty
error: (at:1) `%$strucstart': context stack is empty
error: (at:1) `%$strucname': context stack is empty
error: (at:1) `%$strucstart': context stack is empty
.
.
.
這只是strucuture的聲明,它的第一線繼續爲每一行
Thansk現在工作! – user3074166