Files
GDevelop/Runtime/CompilationChecker.cpp
T
Florian 0171c7db56 Initial import
git-svn-id: svn://localhost@5 8062f311-0dae-4547-b526-b8ab9ac864a5
2010-01-24 19:12:55 +00:00

22 lines
833 B
C++

#include "CompilationChecker.h"
#include "GDL/Version.h"
#include "GDL/VersionWrapper.h"
#include "GDL/StdAlgo.h"
void CompilationChecker::EnsureCorrectGDLVersion()
{
string versionString = toString(GDLVersionWrapper::Major()) + ", " + toString(GDLVersionWrapper::Minor()) + ", " +
toString(GDLVersionWrapper::Build()) + ", " + toString(GDLVersionWrapper::Revision());
if (versionString != RC_FILEVERSION_STRING)
{
char beep = 7;
cout << endl;
cout << "-- WARNING ! --" << beep << endl;
cout << "Compiled with a different version of GDL." << endl;
cout << "GDL DLL Version :" << versionString << endl;
cout << "Compiled with version :" << RC_FILEVERSION_STRING << endl;
cout << "---------------" << endl;
}
}