小编Tas*_*eat的帖子

libcurl编译错误

我使用libcurl,我得到这些错误,而没有编写任何代码只是编译,我不知道为什么

Fehler  49  error C2628: '$UnnamedClass$0x05e5b255$395$' gefolgt von 'bool' unzulässig (Semikolon ';' vergessen?)   c:\users\ttg\desktop\curl-7.21.7\lib\setup_once.h   273
Fehler  50  error C2065: '_SH_DENYNO': nichtdeklarierter Bezeichner C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\xiosbase  111
Run Code Online (Sandbox Code Playgroud)

首先是一个libcurl文件,它说它后面跟bool(忘了分号?)

第二个未声明的标识符

这是整个代码

#pragma once
#include <curl/curl.h>
#include <curl/easy.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string>
#include <sstream>
#include <iostream>
using namespace std;

namespace fr {

    using namespace System;
    using namespace System::ComponentModel;
    using namespace System::Collections;
    using namespace System::Windows::Forms;
    using namespace System::Data;
    using namespace System::Drawing;
static size_t write_data(void *ptr, size_t size, …
Run Code Online (Sandbox Code Playgroud)

compiler-errors c++-cli libcurl

2
推荐指数
1
解决办法
2623
查看次数

如何从QNetworkReply读取标头

如何从QNetworkReply中读取标题,例如cookie?

c++ qt http

2
推荐指数
1
解决办法
5789
查看次数

hiredis“未定义的引用”编译器错误

我想在C中编译客户端以进行Redis。我已经下载并安装了libevent库和hiredis文件。我使用了以下命令:

gcc -I/home/tasos/Dropbox/lists/hiredis example-libevent.c -levent
Run Code Online (Sandbox Code Playgroud)

但我得到这些错误:

/tmp/ccxoerYJ.o: In function `redisLibeventReadEvent':
example-libevent.c:(.text+0x28): undefined reference to `redisAsyncHandleRead'
/tmp/ccxoerYJ.o: In function `redisLibeventWriteEvent':
example-libevent.c:(.text+0x56): undefined reference to `redisAsyncHandleWrite'
/tmp/ccxoerYJ.o: In function `getCallback':
example-libevent.c:(.text+0x2d2): undefined reference to `redisAsyncDisconnect'
/tmp/ccxoerYJ.o: In function `main':
example-libevent.c:(.text+0x393): undefined reference to `redisAsyncConnect'
example-libevent.c:(.text+0x3f3): undefined reference to `redisAsyncSetConnectCallback'
example-libevent.c:(.text+0x404): undefined reference to `redisAsyncSetDisconnectCallback'
example-libevent.c:(.text+0x45d): undefined reference to `redisAsyncCommand'
example-libevent.c:(.text+0x47d): undefined reference to `redisAsyncCommand'
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)

为什么这不起作用?

c compiler-construction linker libevent hiredis

1
推荐指数
1
解决办法
2834
查看次数

动作脚本3鼠标按下

我怎么能不断检查鼠标是否已经关闭,鼠标是否已经关闭并且它移动了我的功能

我试过mk_mc.addEventListener(MouseEvent.MOUSE_DOWN,fct)但它只调用功能然后停止,我想不断地做,我怎么能这样做?

flash actionscript-3 mouseevent

-1
推荐指数
1
解决办法
2万
查看次数