Ok, stupid question....
I used to write programs all into one text files and compile them.
Works, fine.
Then I discovered XCode (or IDEs in general) which appear to be really
increasing my productivity, so I use XCode with the settings for a
command line C++ tool. Works fine, too. Then I split up my source code
into many files. After figuring out the #ifndef stuff, that works great,
even better.
No on my machine everything works fine so I want to run the programs on
the linux cluster. Figured out that this requires recompiling, ok. So I
copied all the source files and run g++ - error. Same thing on my
machine - error. Looks like this:
Undefined symbols:
"AdaptiveNW::progressSystem()", referenced from:
_main in ccTK2FsI.o
"AdaptiveNW::outCurrDegDist()", referenced from:
_main in ccTK2FsI.o
"AdaptiveNW::AdaptiveNW(int, int, int)", referenced from:
_main in ccTK2FsI.o
Since these are .o files, i figured that this is related to the linking
of the output files, which may or may not be something that make does in
Linux. I tried to read on make and its usage, but it seems way way too
complicated for something as simple as what I do here (I'd rather just
concatenate the source files into one....).
Is there any simple way to solve this? A hint on where to get _concise_
introductions on how to use make (i.e. how to use make to do
helloworld.cpp) would be more than enough....
Thanks, Oliver