slenkar писал(а):
You managed to compile the program with the custom strings in blackbox
What do you mean under the "custom strings"? Aren't strings which are read from the resources?
slenkar писал(а):
would it matter if their Mod file was not in the XDev folder?
Yes, it is permissible, and even desirable. Look: the batch files Bin/Compile.bat & Build.bat are looking for path to XDev in the environment variable %XDev%. There it is even checked that this variable must be specified.
Код: "WINBATCH"
@ECHO OFF
IF NOT "%XDev%"=="" GOTO XDev
ECHO Please set system variable XDev=X:\Path\To\XDev
PAUSE
EXIT
:XDev
slenkar писал(а):
Also, when the game is compiled in SDCC are you adding all of the .LIB files to the compilation path?
Yes.
Цитата:
SET Libraries=%Libraries% -L %ZXDev%\Lib XDev.lib Graph.lib Basic.lib Laser.lib MegaBasic.lib Best40.lib trdos.lib libspr.lib Supercode.lib NewSupercode.lib MiraMod2.lib PT3x0A.lib Wham.lib ZX7.lib CalcZX.lib Laser2.lib
::
SET SDCC=%ZXDev%\Bin\sdcc.exe %Options% %Include% %Modules% %Libraries%
slenkar писал(а):
Then does SDCC know which ones not to include because they not called?
Yes. Don't worry that the unused code from a library will be included into your program. In the case of working with .lib libraries (unlike .rel files), the SDCC implements smart linking, but only if the library gets the compiled C-code by the small portions. Note that the developers of C-compilers usually write a library in the form of a some functions, each of it is placed into a separate source. This way allows smart linking.
On the contrary, I like when all a module's functions are placed in a single source. And to save the possibility of smart linking, I wrote the special utility
SmartLib that I use in ZXDev to build libraries.