News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

How to ping? -> IcmpSendEcho problem

Started by jj2007, February 15, 2019, 10:45:10 PM

Previous topic - Next topic

jj2007

I found some code in How to ping?, but it throws weird build errors. Does anybody have a clue what's wrong here?

Siekmanski

If I remember correctly, there were different versions of the ws2_32.lib.
This could be the reason for the build errors?
Creative coders use backward thinking techniques as a strategy.

Raistlin

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.
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

jj2007


Siekmanski

Don't know if you need the old lib anymore?
But here is the old one I replaced for the 2003 version.

Creative coders use backward thinking techniques as a strategy.

jj2007

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

Siekmanski

Creative coders use backward thinking techniques as a strategy.