I dont know how to use anjuta at all

Asked by sh.

I am a new user of ubuntu and also a beginner in C++ programing.I do not know how to use anjuta to compile a program.I do not even know if I have the needed libraries.
Could any one tell me what to do please?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu anjuta Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ivan Bertona (ivan-bertona) said :
#1

The best way to get things done is trying to. So just open up anjuta, make a new project, write an hello world program and start taking confidence with the various tools.

When you encounter a problem, look up the official manual (http://anjuta.sourceforge.net/documentations/subpage/documents/C/anjuta-manual/anjuta-manual.html). If you are still not able to solve it, feel free to ask the community.

Don't forget to expose your issue in a detailed way, so that people can help you better (i suggest you also read this document about asking questions: http://www.catb.org/~esr/faqs/smart-questions.html). Have fun!

Revision history for this message
Lee Braiden (lee-braiden) said :
#2

I would suggest not starting with an IDE like Anjuta until you already understand the basics of how to write, compile, link, and run a C++ program. Basically, you want to make a directory for your project, a C++ source file (usually hello.cc), and then use gcc to make the executable from that (something like gcc -o myprogram hello.cc will do initially). From there, I'd suggest learning to write a simple Makefile so you can build and update myprogram by typing "make" rather than gcc. Next, I'd move on to multiple modules: hello.cc and maybe print_message.cc. Put a print_hello function in print_message.cc, and call that function from your main() function in hello.cc. Next learn how to have your makefile only build the single module that changes, rather than rebuilding your whole project every time you edit a line. Once you can build that, update the message, and understand how it works, why only the file you change gets rebuilt when you type make, and why you have weird main.o files etc., then you might want to start looking at IDEs. In the meantime, using an editor like GEdit along with gnome-terminal would be a better choice.

Can you help with this problem?

Provide an answer of your own, or ask sh. for more information if necessary.

To post a message you must log in.