<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>I'am have no experiences with writin C++ apps but on the python side you have to set the prefix paths and init qgis at app start. Otherwise you'll get strange errors, like yours.</div>

<div> </div>

<div>QgsApplication.prefixPath() --> get your path from a working QGIS python console</div>

<div> </div>

<div>QgsApplication.setPrefixPath(<path>, True)<br/>
QgsApplication.initQgis()</div>

<div> </div>

<div>Hope this helps.</div>

<div> </div>

<div> </div></div></body></html>