Hi AttilaZ,
I started developing with Eclipse CDT (Helios) a month ago and I am still collecting bits of information how to use it best with Gamestudio. To put it simple: basically you disable the compiler and use A8 as external tool to start the script.
What causes trouble is especially the struct initialization feature of Lite-C; e.g. Eclipse can't parse
VECTOR* nullvector = { x=0; y=0; z=0; }
When using the nullvector symbol, Eclipse complaints that it does not know the symbol, so I am writing an 'eclipse.h' that resolves such things:
// xyz = (0,0,0)
VECTOR* nullvector;
// initialize eclipse specific stuff
void eclipse_h_startup() {
// nullvector
{
static VECTOR vecNull;
vecNull.x = vecNull.y = vecNull.z = 0;
nullvector = &vecNull;
}
}
Or, it has also problems with the NULL symbol, so I added for example:
#define NULL 0
#define null 0
to overcome this. I am working on a PoC at the moment; I planned to write an Eclipse tutorial afterwards.