Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - protozen

#31
Quote from: "Lutz"Use this version: http://www.newlisp.org/downloads/development/inprogress/">http://www.newlisp.org/downloads/develo ... nprogress/">http://www.newlisp.org/downloads/development/inprogress/



See addition in newlisp.c lines 36 - 39




Thank you!
#32
newLISP newS / Compile on Zorin OS (Ubuntu LTS base)
August 03, 2014, 01:08:37 PM
I'm not able to compile newlisp on Zorin where it was fine on Ubuntu. Below is the error and below that is gcc -v. Anyone run into this?



gcc -fPIC -m64 -Wall -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX -DFFI -I/usr/local/lib/libffi-3.0.13/include  newlisp.c

newlisp.c: In function 'main':

newlisp.c:907:37: error: 'CPPFunction' undeclared (first use in this function)

 rl_attempted_completion_function = (CPPFunction *)newlisp_completion;

                                     ^

newlisp.c:907:37: note: each undeclared identifier is reported only once for each function it appears in

newlisp.c:907:50: error: expected expression before ')' token

 rl_attempted_completion_function = (CPPFunction *)newlisp_completion;

                                                  ^

newlisp.c: At top level:

newlisp.c:990:47: error: unknown type name 'CPFunction'

 char ** completion_matches(const char * text, CPFunction commands);

                                               ^

newlisp.c: In function 'newlisp_completion':

newlisp.c:995:1: warning: implicit declaration of function 'completion_matches' [-Wimplicit-function-declaration]

 return(completion_matches(text, (CPFunction *)command_generator));

 ^

newlisp.c:995:34: error: 'CPFunction' undeclared (first use in this function)

 return(completion_matches(text, (CPFunction *)command_generator));

                                  ^

newlisp.c:995:46: error: expected expression before ')' token

 return(completion_matches(text, (CPFunction *)command_generator));

                                              ^

newlisp.c:996:1: warning: control reaches end of non-void function [-Wreturn-type]

 }

 ^

make[1]: *** [newlisp.o] Error 1



----------------





gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu

Thread model: posix

gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
#33
Quote from: "ralph.ronnquist"I already had this on my todo list since I also much prefer free standing executables for production code. So, just to complete the thought, I put together a small embedding module, which takes care of including loaded files into the embedding by means of replacing the standard load function. I've made it available here,

http://www.realthing.com.au/files/newlisp/embed.lsp">//http://www.realthing.com.au/files/newlisp/embed.lsp

It kept me entertained a cold and windy winter Saturday afternoon.

Hey thanks for this, I appreciate your input and work.
#34
I'll have to read the thread, coming back to newlisp after a few years. However, it has replace my frequent use of ruby.
#35
Thanks for the input ryuo, this is what I was thinking I'd have to do if there was no sanctioned way.
#36
Is there a way to embedded files into the compiled executable? I would like to build a self contained website distributed as an executable - delivering static files that have been embedded. Alternatively, can the executable be rewritten if updates were made through such a web app?