현재 저는 컴파일러 문제로 어려움을 겪고 있습니다. 문제는 내가 "유럽 국가"(C++로 작성된)라는 MoSync 예제 응용 프로그램 중 하나를 사용하여 내 자신을 작성한다는 것입니다. 내가 수정 된 코드를 컴파일 할 때, 그것은 응답 나에게 다음과 같은 오류를 제공합니다 :컴파일러 오류 __ZTVN13..6..E
Controller.cpp:24: Error: Unresolved symbol '__ZTVN13Flightmanager6FlightE',
나는 이미 예제를 여러 번보고했고 나는 이미 광산에 대한 예제 코드를 복사,하지만하지 않습니다 문제를 해결하십시오. paticutlar에서 나는 오류의 의미 (나는 C 경험이 있음)를 이해할 수도 있지만 그러한 구조화 된 오류를 본적이 없다. 또한 네임 스페이스 규칙을 살펴 보았지만 문제가 있어서는 안됩니다.
//Flight.h
namespace Flightmanager
{
class Flight
{
public:
static int flightCounter;
/**
* The constructor creates the user interface.
*/
Flight(char *flightnumber, char *gate, char *departure, char *additionalinfo, char *destinationairport, char *destinationairportshort) {
this->_id = flightCounter;
flightCounter ++;
this->_flightnumber = flightnumber;
this->_gate = gate;
this->_departure = departure;
this->_additionalinfo = additionalinfo;
this->_destinationairport = destinationairport;
this->_destinationairportshort = destinationairportshort;
}
virtual ~Flight();
}
//Controller.h
#include [all other includes]
#include "../Model/Flight.h"
namespace Flightmanager
{
Controller::Controller():
mFlightArray(NULL),
mCurrentlyShownScreen(NULL)
{
initScreenSizeConstants();
initPlatformType();
//error: Unresolved symbol '__TZVN13Flightmanager6FlightE'.
initData();
//error: Unresoled symbol '__TZVN13Flightmanager6Flight13flightCounterE'.
mFlightTableView = new TableViewController(*this);//error: Unresoled symbol '__TZVN13Flightmanager6Flight13flightCounterE'.
mFlightDetailView = new DetailViewController();
}
}
나는 MoSync 버전 3.2 작성 날짜 사용 : 121219-1556
들으
음, * 어떻게 * 코드를 컴파일하고 있습니까? – us2012
어떤 컴파일러입니까? 변환 된 이름의 해석은 컴파일러에 따라 다릅니다. –
mosync ide를 사용합니다. 그것의 eclise 파생물. 나는 그 GNU C++ 컴파일러를 추측한다. (그러나 확실하지는 않다) – NicTesla