c - undefined reference to `_doFormatMessage' using i586-mingw32msvc-gcc -


i using:linux kali 3.18.0-kali3-586 #1 debian 3.18.6-1~kali2 (2015-03-02) i686 gnu/linux

i have executed below command:

i586-mingw32msvc-gcc 1197.c  -lws2_32  -o 1197.exe 

get output:

1197.c:112:43: warning: multi-character character constant 1197.c: in function ‘explorerexecution’: 1197.c:112: warning: overflow in implicit constant conversion 1197.c:115:43: warning: multi-character character constant 1197.c:115: warning: overflow in implicit constant conversion 1197.c: in function ‘main’: 1197.c:173: warning: return type of ‘main’ not ‘int’ /tmp/ccaflcqw.o:1197.c:(.text+0x3d6): undefined reference `_doformatmessage' collect2: ld returned 1 exit status 

header of 1197.c:

#include <stdio.h> #include <string.h> #include <winsock2.h> #pragma comment(lib, "ws2_32.lib") 

please give suggestion why had this:

/tmp/ccaflcqw.o:1197.c:(.text+0x3d6): undefined reference `_doformatmessage' 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -