Hope this is the best place to post this...
The first example for import at http://www.newlisp.org/downloads/newlis ... tml#import is incorrect. It should have the following marked line added:
Code: Select all
(define LIBC (lookup ostype '(
("Windows" "msvcrt.dll")
("OSX" "libc.dylib")
(import LIBC "printf") ;; This line needs to be added to make example work.
(printf "%g %s %d %c\n" 1.23 "hello" 999 65)