- compile code with
g++ -c test.cpp -DNO_QT -I. -I.. -I../../utils -I../../libfits -I../../include
- link with
g++ -shared -o test.so test.o ../*.o ../../lib/LINUX/*.a -L/usr/X11R6/lib -lX11 /usr/lib/libncurses.a /usr/lib/libg2c.a /usr/lib/libpng.a /usr/lib/libz.a -lpthread


How to create the shared library:
g++ -c test.cpp -DNO_QT -I. -I.. -I../../utils -I../../libfits -I../../include

Then, on MAC OSX:
g++ -dynamiclib -undefined suppress -single_module -flat_namespace ...

MinGW:
g++ -shared -Wl,--noinhibit-exec

linux
g++ -shared -o test.so test1.o

On linux, build dpuser itself with -rdynamic!!!
