Build cpp application <p>I have a list of files (cpp, h, and also child-folders inside with cpp/h too).</p> <p>I'm not sure how to build it correctly because it doesn't have any makefile or smth like that (pure c++-files). So I decided to "catch" the right <code>gcc</code> arguments to build it.</p> <pre><code>g++ *.cpp `wx-config --libs` `wx-config --cxxflags` -lGL -lglut -lfkr-skeletal2d </code></pre> <p>Now I have that line. Here is the list of files:</p> <pre><code>$ ls -p AnimationEditor/ Core-Code/ GLRender.cpp GLSprite.cpp Icons/ LGPLv3.txt MainWindow.h PlayBar.h PopUp.h TimeLine.h BoneEditor/ daten/ GLRender.h GLSprite.h LGPLv3_de.txt MainWindow.cpp PlayBar.cpp PopUp.cpp TimeLine.cpp wxWidgets_Addons/ </code></pre> <p>There is files in directory <code>Core-Code</code>:</p> <pre><code>AnimationManager.cpp AnimationManager.h SkeletalManager.cpp SkeletalManager.h TextureManager.cpp TextureManager.h </code></pre> <p>When I use that gcc-line I get a lot of linker errors:</p> <pre><code>undefined reference to `CSkeletalManager::*** undefined reference to `CAnimationManager::*** </code></pre> <p>Maybe, I have to specify somehow the files from <code>Core-Code</code>. I can't understand the problem.</p>