.dll project help. include rts project files?

.dll project help. include rts project files?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

.dll project help. include rts project files?

Post by ILMTitan »

I am trying to create a basic .dll that I will slowly expand into a gui. The problem is I keep getting unresolved external link errors. To fix one, I include the gui interface .cpp in the project, which creates other errors, which would cascade into including all .cpp files in rts. Is there a way to avoid this? Is there an rts library that I need to include?
For most of my work here, I've been trying to copy what was done with the AI dll interface, so I hope you AI guys can help me. Thank you all.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The AI interface is not a reliable system to copy.

If anything you should create a new one for us to base a new AI interface off of.

Defining an interface class and then including the header files for the objects passed across should do the trick, using "class x;" rather than including the header if its needed but not used.
Last edited by AF on 06 Jul 2006, 12:15, edited 1 time in total.
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

AF wrote:The AI itnerface si nto a reliable systemt o copy.
Well, that sentence sold me, but not for the intended reason!
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

well known fact coders hate typing documentation & typing skills
not like u need to type fast to code. i.e type bit of code check for syntax errors & works. then type next bit of code etc etc
Last edited by hollowsoul on 06 Jul 2006, 15:36, edited 1 time in total.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I've corrected the errors now please get back on topic
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

Thanks AF. Problem fixed.
Post Reply

Return to “Engine”