The MASM Forum

General => The Campus => Topic started by: jj2007 on February 15, 2019, 10:45:10 PM

Title: How to ping? -> IcmpSendEcho problem
Post by: jj2007 on February 15, 2019, 10:45:10 PM
I found some code in How to ping? (http://www.masmforum.com/board/index.php?topic=988.msg7053#msg7053), but it throws weird build errors. Does anybody have a clue what's wrong here?
Title: Re: How to ping? -> IcmpSendEcho problem
Post by: Siekmanski on February 16, 2019, 12:07:22 AM
If I remember correctly, there were different versions of the ws2_32.lib.
This could be the reason for the build errors?
Title: Re: How to ping? -> IcmpSendEcho problem
Post by: Raistlin on February 16, 2019, 12:20:04 AM
see: LiaoMi_Ping.zip (12.32 kB) on Page 4 of my hardware enumerator forum posts  8)
http://masm32.com/board/index.php?topic=5964.45

@jj2007: Just looking at the posted link of Petroizki (old forum), it's quite (very) possible the correct
lib's and incs are not being used. If I remember correctly I had to scrounge far and wide as well as
modify my includes to get all my networking endeavors to work.
Title: Re: How to ping? -> IcmpSendEcho problem
Post by: jj2007 on February 16, 2019, 12:55:56 AM
Perfect, thanks :t
Title: Re: How to ping? -> IcmpSendEcho problem
Post by: Siekmanski on February 16, 2019, 01:06:15 AM
Don't know if you need the old lib anymore?
But here is the old one I replaced for the 2003 version.

Title: Re: How to ping? -> IcmpSendEcho problem
Post by: jj2007 on February 16, 2019, 01:11:46 AM
Thanks, but it seems better to use the current one. With the old code by Petroizki, I get loads of build errors even with the old lib+inc that you posted.

\masm32\include\windows.inc(156) : Error A2136: Symbol type conflict: BOOL
\masm32\include\windows.inc(156): Included by
  Tmp_File.asm(3): Main line code
\masm32\include\windows.inc(12164) : Error A2056: Symbol already defined: Flags
\masm32\include\windows.inc(12164): Included by
  Tmp_File.asm(3): Main line code
\masm32\include\windows.inc(12184) : Error A2056: Symbol already defined: Flags
\masm32\include\windows.inc(12184): Included by
  Tmp_File.asm(3): Main line code
\masm32\include\windows.inc(16530) : Error A2056: Symbol already defined: hInst
\masm32\include\windows.inc(16530): Included by
  Tmp_File.asm(3): Main line code
\masm32\include\windows.inc(16542) : Error A2056: Symbol already defined: hInst
\masm32\include\windows.inc(16542): Included by
  Tmp_File.asm(3): Main line code
\masm32\include\windows.inc(23408) : Error A2056: Symbol already defined: GUID
\masm32\include\windows.inc(23408): Included by
  Tmp_File.asm(3): Main line code
\masm32\include\winextra.inc(12329) : Error A2056: Symbol already defined: cStr
\masm32\include\winextra.inc(12329): Included by
  \masm32\include\windows.inc(26889): Included by
   Tmp_File.asm(3): Main line code
\masm32\include\winextra.inc(12795) : Error A2101: Macro nesting level too deep
\masm32\include\winextra.inc(12795): Included by
  \masm32\include\windows.inc(26889): Included by
   Tmp_File.asm(3): Main line code
\masm32\include\winextra.inc(12811) : Error A2101: Macro nesting level too deep
\masm32\include\winextra.inc(12811): Included by
  \masm32\include\windows.inc(26889): Included by
   Tmp_File.asm(3): Main line code
\masm32\include\winextra.inc(12823) : Error A2101: Macro nesting level too deep
\masm32\include\winextra.inc(12823): Included by
  \masm32\include\windows.inc(26889): Included by
   Tmp_File.asm(3): Main line code
\masm32\include\winextra.inc(12841) : Error A2101: Macro nesting level too deep
\masm32\include\winextra.inc(12841): Included by
  \masm32\include\windows.inc(26889): Included by
   Tmp_File.asm(3): Main line code
\masm32\include\winextra.inc(12853) : Error A2101: Macro nesting level too deep
\masm32\include\winextra.inc(12853): Included by
  \masm32\include\windows.inc(26889): Included by
   Tmp_File.asm(3): Main line code
ws2_32.inc(136) : Error A2143: Symbol redefinition: SOCKET
ws2_32.inc(136): Included by
  Tmp_File.asm(5): Main line code
Tmp_File.asm(10) : Error A2143: Symbol redefinition: ADDRESS
Tmp_File.asm: 56 lines, 1 passes, 79 ms, 0 warnings, 14 errors
Title: Re: How to ping? -> IcmpSendEcho problem
Post by: Siekmanski on February 16, 2019, 01:17:26 AM
 :t