C++ QNetworkReply在Windows中不接收数据,但在Linux中工作

C++ QNetworkReply在Windows中不接收数据,但在Linux中工作,c++,json,windows,qt,bitcoin,C++,Json,Windows,Qt,Bitcoin,在Linux和Mac OS X Qt上,wallet可以完美构建并运行。在Windows上,Qt wallet可以构建,但提取btc_gbp价格数据的Coinbase API调用不起作用 完整来源可用 您是否在Windows上随应用程序提供OpenSsl?HTTPs需要它作为一个动态库。在大多数Mac和Linux安装上,它在系统范围内可用。“不工作”不是对问题的有用描述。错误消息是什么?当您在调试器中单步执行代码时会发生什么情况?它只是没有从Windows中Coinbase API的JSON调用

在Linux和Mac OS X Qt上,wallet可以完美构建并运行。在Windows上,Qt wallet可以构建,但提取
btc_gbp
价格数据的Coinbase API调用不起作用

完整来源可用


您是否在Windows上随应用程序提供OpenSsl?HTTPs需要它作为一个动态库。在大多数Mac和Linux安装上,它在系统范围内可用。“不工作”不是对问题的有用描述。错误消息是什么?当您在调试器中单步执行代码时会发生什么情况?它只是没有从Windows中Coinbase API的JSON调用中得到响应。在Linux和Mac中工作。
//Coinbase API
const QString apiCoinbasePrice = "https://api.coinbase.com/v1/currencies/exchange_rates";

// THE CALL
void PoolBrowser::coinbasePrice(QNetworkReply* response)
{
mValue jsonResponse = new mValue();
QString apiResponse = response->readAll();

//Make sure the response is valid
if(!read_string(apiResponse.toStdString(), jsonResponse)) { return; }

mObject jsonObject = jsonResponse.get_obj();

_dBtcPriceCurrent =  QString::fromStdString(getPairValue(jsonObject,  "btc_to_gbp").get_str()).toDouble();

updateLabel(ui->lblOverviewBtcGbpPrice,
            _dBtcPriceCurrent,
            _dBtcPriceLast,
            QString::fromUtf8("£"),
            2);

_dBtcPriceLast = _dBtcPriceCurrent;
_dScPriceLast = _dBtcPriceCurrent * _bittrexMarketSummary->getLastCurrent(double());