I'm afraid this may be yet another thread on linker errors, but all such threads I've found thus far address templates, which I'm not using. Compilation gives the classic "undefined reference to <every class>::<every function>" error.
Potentially helpful information:
This code compiles and runs flawlessly on Mac OS X. I encountered this problem when trying to compile the code on linux (Ubuntu 10.04).
As a result of perusing another thread on a related problem, I added #include "required_classes.cpp" to the driver in addition to the already existent #include "required_classes.h". This had the effect of eliminating the "undefined reference" errors, but yields a binary file that cannot be executed.
This code uses the cfitsio library (
http://heasarc.gsfc.nasa.gov/fitsio/ ). There were, as implied above, no problems linking to this library on Mac.
I'm using gcc 4.4.3 (i486-linux-gnu).
Any and all suggestions would be most appreciated.