when trying to compile simple "hello world" c++ program using "File/New GNU C++ Autotools Project" i getting fallowing error: " **** Clean-only build of configuration Build (GNU) for project okno_zadania **** make -k clean make: *** No rule to make target `clean'. Buildfile generation error occurred.. Not possible to generate Makefile and no existing Makefile found Build stopped.." my project contains one source folder ("zadania") and one cpp unit (zad1.cpp) that loks like this: " #include <iostream> int main (){ std::cout<<"foo"; return 0; } "
The error is correct. You have created the wrong type of project. You should have created a simple Managed Make project (no autotools). You do not have the files in place for an Autotools project. An Autotools project is meant to be used for an existing project that has Autotools files in place (e.g. if you had checked out the gdb project). The error is occurring because you do not have a Makefile in place nor do you have a way of generating a Makefile using Autotools. A regular Managed Make project would have created one for you automatically which is what I believe you meant to do. For an Autotools project, you are required to provide a configure.in or configure.ac file that can be input to the autoconf command. This creates the configure file used to configure your project. You also require a Makefile.in which should be generated from a Makefile.am file using the automake command. There are other files, but if you specify --add-missing, they are created for you.