Using Debian 7 and 6 with g++ 4.6
Geany is great but I notice when compiling the same code with Netbeans 7.xx and C++ plugin or Eclipse Indigo 3.7 and C++ plugin
The main.cpp file in a project when built with Geany requires the Class.cpp files to be listed as #include "Class.cpp" along with the #include "Class.h" ..or the Build fails.. Not so with other IDEs WHY?? I have tried this in several other Linux installs and the problem is same... I believe that I should only have to list the Headers as the Class are linked in the Headers...No? ...Before anyone asks.."All source and headers are in the same Dir" Thanks for any help..
On 20 April 2012 14:38, sqlpython sqlpython@gmail.com wrote:
Using Debian 7 and 6 with g++ 4.6
Geany is great but I notice when compiling the same code with Netbeans 7.xx and C++ plugin or Eclipse Indigo 3.7 and C++ plugin
The main.cpp file in a project when built with Geany requires the Class.cpp files to be listed as #include "Class.cpp" along with the #include "Class.h" ..or the Build fails.. Not so with other IDEs WHY?? I have tried this in several other Linux installs and the problem is same... I believe that I should only have to list the Headers as the Class are linked in the Headers...No? ...Before anyone asks.."All source and headers are in the same Dir" Thanks for any help..
Both Eclipsed and Hasbeans create a makefile which also compiles class.cpp and use that to build.
Geany does exactly what you tell it, so if you just tell it to compile main thats all it does, it won't compile class.cpp automagically. When you include class.cpp of course then it is compiled as part of main..
You can write a makefile yourself and use build->make to re-build whatever you need.
Cheers Lex
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 04/20/2012 12:46 AM, Lex Trotman wrote:
On 20 April 2012 14:38, sqlpythonsqlpython@gmail.com wrote:
Using Debian 7 and 6 with g++ 4.6
Geany is great but I notice when compiling the same code with Netbeans 7.xx and C++ plugin or Eclipse Indigo 3.7 and C++ plugin
The main.cpp file in a project when built with Geany requires the Class.cpp files to be listed as #include "Class.cpp" along with the #include "Class.h" ..or the Build fails.. Not so with other IDEs WHY?? I have tried this in several other Linux installs and the problem is same... I believe that I should only have to list the Headers as the Class are linked in the Headers...No? ...Before anyone asks.."All source and headers are in the same Dir" Thanks for any help..
Both Eclipsed and Hasbeans create a makefile which also compiles class.cpp and use that to build.
Geany does exactly what you tell it, so if you just tell it to compile main thats all it does, it won't compile class.cpp automagically. When you include class.cpp of course then it is compiled as part of main..
You can write a makefile yourself and use build->make to re-build whatever you need.
Cheers Lex
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Ahh.. Thank you very much, Lex... I guess I am spoiled using IDEs my whole life going right back to Borland's IDEs in the 80s.. Never thought to make a make file..No pun intended.. ;^) I will continue to #include "Class.cpp" in my projects Main. Geany is a nice IDE ..Lightweight and Powerful.