Author Topic: How to ping? -> IcmpSendEcho problem  (Read 768 times)

jj2007

  • Member
  • *****
  • Posts: 9733
  • Assembler is fun ;-)
    • MasmBasic
How to ping? -> IcmpSendEcho problem
« on: February 15, 2019, 10:45:10 PM »
I found some code in How to ping?, but it throws weird build errors. Does anybody have a clue what's wrong here?

Siekmanski

  • Member
  • *****
  • Posts: 1908
Re: How to ping? -> IcmpSendEcho problem
« Reply #1 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?
Creative coders use backward thinking techniques as a strategy.

Raistlin

  • Member
  • ****
  • Posts: 502
Re: How to ping? -> IcmpSendEcho problem
« Reply #2 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.
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

jj2007

  • Member
  • *****
  • Posts: 9733
  • Assembler is fun ;-)
    • MasmBasic
Re: How to ping? -> IcmpSendEcho problem
« Reply #3 on: February 16, 2019, 12:55:56 AM »
Perfect, thanks :t

Siekmanski

  • Member
  • *****
  • Posts: 1908
Re: How to ping? -> IcmpSendEcho problem
« Reply #4 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.

Creative coders use backward thinking techniques as a strategy.

jj2007

  • Member
  • *****
  • Posts: 9733
  • Assembler is fun ;-)
    • MasmBasic
Re: How to ping? -> IcmpSendEcho problem
« Reply #5 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.

Code: [Select]
\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

  • Member
  • *****
  • Posts: 1908
Re: How to ping? -> IcmpSendEcho problem
« Reply #6 on: February 16, 2019, 01:17:26 AM »
 :t
Creative coders use backward thinking techniques as a strategy.