This issue is probably easily-solvable, but I have no idea how to do it.
Anyway, I’m using Eclipse 3.5.2 in Ubuntu 11.04. I’m writing a game in C++ (not Java), and I’m writing several classes for it. Fine. I’m building frequently to check for errors. Fine.
But my first problem is that when I hit Build (for both Debug and Release), even though the compilation dialog window appears I get no binary, nor do I get any errors. This is what I get;
**** Build of configuration Debug for project Different-Game ****
make all
make: Nothing to be done for `all'.
That’s it. It’s probably just a setting I screwed up somewhere, but I don’t know what I’m doing here!
The second issue needs some explanation. I had written up a class diagram in UML to provide a solid reference for myself. I exported it as a .cpp file to see how it would work, and I forgot to remove it from my source folder. That means my project thinks that these classes are part of the project. Even after deleting the .cpp, it still thinks these classes are in. They don’t show in the hierarchy off to the left, but I can’t create classes with the names they held (and should have given up).
Anyone have any tips?
It looks like it CDT hasn’t found anything to build. If it was only finding some stuff, it would kick up errors such as
undefined reference to 'main'There could be several causes:
You can verify which source files are being made by looking in your build folder (which is where CDT places generated makefiles). Look out for files titled
subdir.mk. Each of these should mention the source files to be compiled in that directory.E.g. if you have
~/workspace/myProject/src/main.cthen~/workspace/myProject/Debug/src/subdir.mkshould also be there and it should contain a line with../src/main.c