Anjuta on linux

来自linux中国网wiki
跳到导航 跳到搜索

pre

c基础

安装

  • 2).开发工具包
sudo apt-get install autogen automake build-essential indent intltool libtool-bin -y 
  • 3).安装IDE Ajunta DeveStudio
sudo apt install anjuta anjuta-extras

使用

查看源码:点左侧“工程”按钮,切换到“工程”选项卡。点工程名“foobar-c”,双击“main.c”打开它,编辑器选择“Scintilla Editor”(这个才有代码补全功能)。

编译运行:可以看到,main() 函数已预先写好了。我们按下“F9”编译,再按“F3”就能运行了!(这两个快捷键对应菜单在“生成”菜单下。)

新建文件: 文件-->new-->文件

好了,Anjuta的更多功能等待你去发掘!点击“设置”》“Plugins”。。。。。。。


*安装C/C++开发文档
在编程的过程中有时会记不得某个函数的用法,通常这时查man手册是比较快的,所以把这个manpages-dev软件包安装上。想要看某个函数的用法就man它。 sudo apt-get install manpages-dev

manpage的索引由mandb命令管理,有时在安装了新的manpage文件后,可能需要更新一下索引才能看到man -k 和man -f这些函数。
 mandb -c
然后,就可以查看这些文档了。比如,fopen的:
man fopen

新建文件

建一个新文件并插入文本
3.1.1 创建一个新文件
要创建一个新文件,选择文件 - > “新建的菜单,或单击新文件按钮在工具栏上。 A new page will appear in the editor (or a new window if the parent document is windowed). This new document will be named newfile#1 , newfile#2 , newfile#3 and so on.一个新的页面将出现在编辑器(或一个新窗口,如果原文件是窗口) 。这一新的文件将被命名为newfile # 1 , newfile # 2 , # 3和newfile等等。
注意:您应该尽快保存新文件以避免任何数据丢失的情况!
3.1.2 文件向导 这个在freebsd上不成功
一个向导还可以用来建立一个新的文件.要创建一个新文件,请选择文件->新建->菜单选择5.这将打开新的文件向导对话框.选择文件类型,输入文件名,后缀名将自动加入.您可以添加许可证信息(根据您的许可选择)和一个标题。


  • 问题

Build fails with error: **Error**: You must have `libtool' installed to compile c sudo apt-get install libtool libtool-bin -y

参考

C编译初步 http://wiki.ubuntu.org.cn/Compiling_C

GCC新手入门 http://wiki.ubuntu.org.cn/Gcchowto

Gtk与Qt编译环境安装与配置 http://wiki.ubuntu.org.cn/Gtk%E4%B8%8EQt%E7%BC%96%E8%AF%91%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85%E4%B8%8E%E9%85%8D%E7%BD%AE

18 Best IDEs for C/C++ Programming or Source Code Editors on Linux http://www.tecmint.com/best-linux-ide-editors-source-code-editors/

Linux 上的最佳 C/C++ IDE https://linux.cn/article-5078-1.html

C Cpp IDE http://wiki.ubuntu.org.cn/C_Cpp_IDE


IDE教程

GTK入门教程、GTK详解、Anjuta中文手册(更新中)

Anjuta—基于GTK+/GNOME的C/C++优秀开发环境

Anjuta安装使用



Ajunta on ubuntu http://forum.ubuntu.org.cn/viewtopic.php?t=79137

https://blogs.gnome.org/anjuta/2010/08/05/anjuta-gains-support-for-python/

https://wiki.gnome.org/Apps/Anjuta

other question

the file on the disk is more recent than the current buffer

F9 Debug --enable-maintainer-mode 'CFLAGS=-g -O0' 'CXXFLAGS=-g -O0' 'JFLAGS=-g -