Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, Quad, AndrewAMD), 936 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Best IDE for lite-c development #434879
12/29/13 05:09
12/29/13 05:09
Joined: Dec 2013
Posts: 10
A
AttilaZ Offline OP
Newbie
AttilaZ  Offline OP
Newbie
A

Joined: Dec 2013
Posts: 10
Hi Guys,

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

Best,
Attila

Re: Best IDE for lite-c development [Re: AttilaZ] #434885
12/29/13 10:45
12/29/13 10:45
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
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.

Re: Best IDE for lite-c development [Re: HeelX] #434886
12/29/13 10:48
12/29/13 10:48
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
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).


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1