Best IDE for lite-c development

Posted By: AttilaZ

Best IDE for lite-c development - 12/29/13 05:09

Hi Guys,

What IDEs are you using to develop in lite-c ?
Has anyone integrated with Eclipse for example ?
(IntelliJ maybe ?)

Best,
Attila
Posted By: HeelX

Re: Best IDE for lite-c development - 12/29/13 10:45

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

Code:
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:

Code:
// 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:

Code:
#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.
Posted By: HeelX

Re: Best IDE for lite-c development - 12/29/13 10:48

But here are the external tool parameters in case you want to test it out on yourself beforehand:

Location: D:\dev\engines\A8.45.1\acknex.exe
Working Directory: D:\dev\engines\A8.45.1
Arguments: ${selected_resource_loc} --diag

Then, select in the Project Explorer the file to start and run the external tool on that.

Make sure that for each project you set under Properties\C/C++ General\Paths and Symbols\Includes the path to the Gamestudio include files (D:\dev\engines\A8.45.1\include).
© 2024 lite-C Forums