Hi so im trying to make a port scanner on my tool but i cant seem to compile?
Error code when compileing:
The Whole code:
Error code when compileing:
Code
-*- mode: compilation; default-directory: "c:/emacscode/Sec2/" -*-
Compilation started at Fri Sep 27 16:38:55
g++ StoneCodedPanel.cpp -o SCP
C:\Users\denni\AppData\Local\Temp\ccLdspLG.o:StoneCodedPanel.cpp:(.text$_ZN9powermode11portscannerEv[__ZN9powermode11portscannerEv]+0xe1): undefined reference to `_imp__socket@12'
C:\Users\denni\AppData\Local\Temp\ccLdspLG.o:StoneCodedPanel.cpp:(.text$_ZN9powermode11portscannerEv[__ZN9powermode11portscannerEv]+0xfd): undefined reference to `_imp__htons@4'
C:\Users\denni\AppData\Local\Temp\ccLdspLG.o:StoneCodedPanel.cpp:(.text$_ZN9powermode11portscannerEv[__ZN9powermode11portscannerEv]+0x121): undefined reference to `_imp__connect@12'
C:\Users\denni\AppData\Local\Temp\ccLdspLG.o:StoneCodedPanel.cpp:(.text$_ZN9powermode11portscannerEv[__ZN9powermode11portscannerEv]+0x185): undefined reference to `_imp__closesocket@4'
collect2.exe: error: ld returned 1 exit status
Compilation exited abnormally with code 1 at Fri Sep 27 16:38:56The Whole code:
Code
https://pastebin.com/hiekA20L

