Error on row:
HttpClient::getInstance()->send(request);
Multiple markers at this line
- undefined reference to ‘cocos2d::network::HttpClient::getInstance()’
- undefined reference to
‘cocos2d::network::HttpClient::send(cocos2d::network::HttpRequest*)’
But I have declared:
#include "network/HttpClient.h"
using namespace cocos2d::network;
Your error is a linker error, which means the file cocos/network/HttpClient.cpp is not being compiled and/or linked in, or the library that it’s part of is not being linked in.
i have the same error im currently building in vc++ windows. Even i added the libnetwork proj to my solution and also added libnetwork to properties->linker->addexternaldependencies
still error persist