Anjuta on linux

来自linux中国网wiki
docker>Evan2017年6月7日 (三) 11:14的版本 →‎参考
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

安装

  • 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


  • 问题

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

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 -