When i try to build a simple JSON example with a static poco library in XCODE i get the following:
Undefined symbols for architecture i386:
"Poco::AtomicCounter::AtomicCounter(int)", referenced from:
Poco::ReferenceCounter::ReferenceCounter() in ListType.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Code: Select all
#ifndef __PocoTest2__ListType__
#define __PocoTest2__ListType__
#include <iostream>
//#include <Poco/JSON/JSON.h>
#include <Poco/JSON/Array.h>
//#include <Poco/JSON/Parser.h>
//#include <Poco/JSON/DefaultHandler.h>
//#include <Poco/JSON/Object.h>
//#include <Poco/Dynamic/Var.h>
#include <String.h>
using namespace Poco::JSON;
using namespace Poco::Dynamic;
using namespace std;
class ListType{
private:
const std::string LIST_REF = "ListRef";
Array::Ptr listRefs; // This line generates error!
public:
ListType();
void deserialize( string jsonString);
};
#endif /* defined(__PocoTest2__ListType__) */
Any suggestions on why and what it's complaining about?
BR





