I have compiled (with g++) and run the code "combined.cpp". It consists of the class LIBS, main and funct_correlation. A LIBS object is created as "L". Then main invokes L.getHABlib. funct_correlation then does the same.
Now I want to separate the code into the 2 pieces shown.(separate1.cpp,separate2.cpp) This does not compile-the function "correlation" cannot "see" the "L" object. Functionally I would think this code is the same as the above but I clearly am missing something to tie them together (the gnu linker does not).
Any help appreciated
Fritz