loadfuncpp

###

# Loadfuncpp ## Compiler Options ### Carl Sturtivant, January 2009 When compiling a shared object (or dll) to dynamically load functions into Icon via loadfuncpp, try the following compilation options, which have been successfully used to build libraries with version 0.91alpha on the systems below. Everything is simplest if all shared objects are placed in the icon/bin directory and all linkable Icon (.u1/.u2 files) are placed in the icon/lib directory. ## Linux g++ -fPIC -shared -o file.so file.cpp ## Cygwin g++ -shared -o file.so file.cpp iload_so_directory/iload.a ## Macintosh g++ -flat_namespace -bundle -undefined suppress -o file.so file.cpp ## Solaris g++ -fPIC -shared -o file.so file.cpp