Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Does the final build care where the source files were saved?

Author
Message
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Dec 2014 20:54
I've only been using AppGameKit for about a month but I've already built up quite a healthy library of reusable code - maths, collision, xml parsing etc. and I am keeping it all in a 'Libraries' folder.

So if I want to include my xml parser in a project then instead of having to make a copy of it, I can simply:
#include "../libraries/xml.agc"

That works fine and it makes much more sense than making multiple copies of source code to include in each project - a nightmare if I edit any of it!

My question is: Once compiled into a final build, is the location of the source code now irrelevant? I don't want to continue down this path only to find lots of problems later on. My thought is - 'of course not, it's a build and the location of source code is now meaningless' but I just want to be sure.

Thanks
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 19th Dec 2014 21:01
if u compile u make a executable file that not required the source code.

the other problem with shared libs are, if u make changes at this
u must edit all projects that contains this.
maybe its better to copy a good last edited lib to the project folder where u need it. i always remark with last edit date the lib and/or functions.

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Dec 2014 21:07
Thanks Markus, that's what I thought but just wanted to be sure.

As for copying the libraries - I only add code to my libraries once they are fully tested and robust. The only edits I would make would be to add additional functions

But its still a good tip

Login to post a reply

Server time is: 2024-04-26 15:02:31
Your offset time is: 2024-04-26 15:02:31