version.cpp: In function 'void WriteVersion()':
version.cpp:10: error: '__P4_VERSION__' was not declared in this scope
gmake: *** [OBJDIR/version.o] Error 1
cum rezolv?
version.ccp
Cod: Selectaţi tot
#include <stdio.h>
void WriteVersion()
{
#ifndef __WIN32__
FILE* fp = fopen("VERSION.txt", "w");
if (fp)
{
fprintf(fp, "Game by Tiger version: %s\n", __P4_VERSION__);
fclose(fp);
}
#endif
}




