I'm having trouble compiling NaturalGM on Windows. I'm using QtCreator with MinGW 4.7 and have installed QScintilla. When I compile, I get these errors.
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:210: error: expected ':' before ';' token
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:210: error: expected primary-expression before ';' token
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:212: error: 'Exists' is not a member of 'QDir'
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:216: error: cannot call member function 'bool QDir::mkdir(const QString&) const' without object
They all appear in this section of code.
207| void ProjectDialog::choose()
208| {
209| QString proj = directoryEdit.text();
210| settings->settings & Settings::AddDirectory ? proj += projectEdit.text()+QDir::separator();
211| proj += projectEdit.text();
212| if (QDir::Exists(proj))
213| {
214|
215| }
216| bool made = QDir::mkdir(proj);
217| }
The first two errors suggest that the compiler expects ternary because of the question mark.
For the third error, I checked the Qt reference for QDir in which "Exists" is not listed as a method, but "exists" is. I tried changing it to "exists," but got this error.
C:\Users\Joshua\Documents\GitHub\NaturalGM\Source\Dialogs\ProjectDialog.cpp:212: error: cannot call member function 'bool QDir::exists(const QString&) const' without object
I don't know too much about the C languages (I mainly do Java), but I assume the last error (and the one I created when trying to fix the third error) is similar to the Java error "Cannot call non-static method ____ from a static context." I really have no idea.