Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未定义对`` doFormatMessage';使用i586-mingw32msvc-gcc_C_Linux_Gcc - Fatal编程技术网

未定义对`` doFormatMessage';使用i586-mingw32msvc-gcc

未定义对`` doFormatMessage';使用i586-mingw32msvc-gcc,c,linux,gcc,C,Linux,Gcc,我使用的是: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’

我使用的是: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")

这是库不兼容的典型影响。应用程序希望库定义一些它没有定义的标签。因此,无法解析标签。这表明您链接了一个错误的库版本。@arkascha,我已经在使用lws2_32了,仍然收到这个错误。我不明白要添加哪个库。请给我推荐图书馆文件。我写了一个图书馆的错误版本,而不是一个错误的图书馆。但事实上你是对的,它也可能是你丢失的某个图书馆。不过,我对微软视窗的这些东西一无所知。抱歉,这是库不兼容的典型后果。应用程序希望库定义一些它没有定义的标签。因此,无法解析标签。这表明您链接了一个错误的库版本。@arkascha,我已经在使用lws2_32了,仍然收到这个错误。我不明白要添加哪个库。请给我推荐图书馆文件。我写了一个图书馆的错误版本,而不是一个错误的图书馆。但事实上你是对的,它也可能是你丢失的某个图书馆。不过,我对微软视窗的这些东西一无所知。很抱歉
/tmp/ccAfLCQw.o:1197.c:(.text+0x3d6): undefined reference to `_doFormatMessage'