25.8 Regenerating the include files. 4tH 4tH Forth compiler
Pubblicità
Pubblicità
CHAPTER 25. COMPILING THE SOURCE 481
#define CELL_MIN INT_MIN
#define CELL_MAX INT_MAX typedef int cell;
Save 4th.h and compile as described in the previous sections. If you want a full 64-bit
4tH compiler, be aware that:
• You cannot compile 4tH as a shared library
• You have to regenerate the include files manually, unless you’re working with Linux.
Linux automatically recreates the include files each time you perform a compile. If you’re working with a GNU toolset, you may try the Linux Makefile. If that doesn’t work or isn’t an option in your particular situation you’ll have to perform the procedure listed in section 25.8.
25.8
Regenerating the include files
If you compile the source on an incompatible platform, you will find the editor won’t work.
That’s not much of a problem, generating the correct source for your platform only takes a few seconds. Just proceed as follows.
First, generate 4tH as usual and install it. The editor still won’t work, but that is not important right now. Now go to the examples directory of your 4tH distribution and type: make
After compilation has finished, move editor.h, zeditor.h, teditor.h, mon.h
and pp4th.h to the C source directory. Now compile 4tH again: make clean make
Run 4tH and check if the editor loads properly:
./4th
You should see something like this:
4tH library V3.62 - Copyright 1994,2012 J.L. Bezemer
(S)creen file: new.scr
(O)bject file: out
(E)dit (C)ompile (R)un (A)rguments
(Q)uit (G)enerate (B)uild (D)ecompile
>e
Cannot open file OK q
(S)creen file: new.scr
(O)bject file: out
Scarica
Pubblicità