Linking newLISP source and executable question?
Posted: Fri Nov 04, 2011 6:22 pm
Hi all,
I am new to newLisp and working through the manual. The example says:
I get the following results:
The executable uppercase is 76 bytes larger than newlisp but behaves as if nothing was linked in.
Can anyone point out what I am missing?
I am new to newLisp and working through the manual. The example says:
On Linux I don't understand the distinction between a) and b). Assuming they are the same and using this directory(1) Put the following files into the same directory: (a) a copy of the newLISP executable; (b) newlisp (or newlisp.exe on Win32); (c) link.lsp; and (d) the program to link with (uppercase.lsp in this example).
Code: Select all
$ ls Lisp/newLispCode
link.lsp newlisp uppercase.lsp
Code: Select all
$ newlisp link.lsp
Hi
newLISP v.10.3.3 64-bit on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.
> (link "newlisp" "uppercase" "uppercase.lsp")
original newlisp executable:newlisp
new executable:uppercase
source:uppercase.lsp
true
> (exit)
$ chmod 775 uppercase
$ ./uppercase "convert me to uppercase"
newLISP v.10.3.3 64-bit on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.
> (last-error)
nil
>
Can anyone point out what I am missing?