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
Post a Comment