我正在使用:Linux kali 3.18.0-kali3-586#1 Debian 3.18.6-1~kali2(2015-03-02)i686 GNU / Linux
我执行了以下命令:
i586-mingw32msvc-gcc 1197.c -lws2_32 -o 1197.exe
获得输出:
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’ is not ‘int’
/tmp/ccAfLCQw.o:1197.c:(.text+0x3d6): undefined reference to `_doFormatMessage'
collect2: ld returned 1 exit status
这个1197.c的标题:
#include <stdio.h>
#include <string.h>
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")
请提出任何建议,为什么我有这个:
/tmp/ccAfLCQw.o:1197.c:(.text+0x3d6): undefined reference to `_doFormatMessage'