在 Ubuntu 12.04 LTS 中,我安装了 Eclipse CDT 插件并打开了新的 hello world 项目来测试所有内容。在创建项目时,我选择了唯一的工具链:“Linux GCC”
但是,在创建项目时,它说
#include<iostream>
#include<cstdlb>
Run Code Online (Sandbox Code Playgroud)
未解决。因此,用线条cout
和endl
不能使用,无法找到std
。
using namespace std;
也造成了问题。
如何让我#include
的标准库头指令得到识别,以支持使用std
命名空间的代码?
我正在尝试在 Ubuntu 上编写一个简单的设备驱动程序。我想使用 Eclipse(或适合驱动程序编程的更好的 IDE)来做到这一点。这是代码:
#include <linux/module.h>
static int __init hello_world( void )
{
printk( "hello world!\n" );
return 0;
}
static void __exit goodbye_world( void )
{
printk( "goodbye world!\n" );
}
module_init( hello_world );
module_exit( goodbye_world );
Run Code Online (Sandbox Code Playgroud)
经过一番研究,我决定使用Eclipse CTD来开发驱动程序(虽然我仍然不确定它是否支持多线程调试工具)。所以我:
eclipse-cdt
和linux-headers-2.6.38-8,C Project
命名TestDriver1
并复制粘贴到上面的代码,make
以下自定义构建命令:make -C /lib/modules/2.6.38-8-generic/build M=/home/isaac/workspace/TestDriver1
当我尝试使用 eclipse 构建此项目时出现错误。这是构建的日志: …
我在硬盘驱动器的已安装分区上创建了一个 Eclipse 工作区。我能够成功构建 hello world 程序,但是当我尝试执行 runnable 时,我收到以下错误消息:
Error starting process. Exec_tty error:Cannot run program
"/media/vineet/DEVDATA1/vinexpMount/Debug/vinExpeMount": Unknown
reason Exec_tty error:Cannot run program
"/media/vineet/DEVDATA1/vinexpMount/Debug/vinExpeMount": Unknown
reason Exec_tty error:Cannot run program
"/media/vineet/DEVDATA1/vinexpMount/Debug/vinExpeMount": Unknown
reason
Run Code Online (Sandbox Code Playgroud)
请告诉我该怎么办?我已经检查了可执行文件的权限
-rw-r--r--
这意味着我没有得到执行的许可。但是当我在根分区中创建工作区时,默认情况下我获得了执行权限。我该怎么做才能在这里得到相同的行为?
我有一个奇怪的问题。我使用以下方法为 c/c++ 开发安装了 eclipse:
sudo apt-get install eclipse eclipse-cdt g++
Run Code Online (Sandbox Code Playgroud)
打开 Eclipse 后,我尝试创建一个新项目,但是我没有在项目类型(c 项目/c++ 项目/Java 项目)之间进行选择的选项,只有“项目”选项。这个项目没有生成 src 文件夹。我也没有看到创建 src 文件夹的选项。我该如何解决?
我尝试从他们的网站下载手动安装它,但该程序甚至没有启动。
我按照这篇文章在 Ubuntu 15.10 上安装 Eclipse Mars: 如何使用其安装程序安装 Eclipse
并在安装后午餐。
我安装/opt folder
在sudo ./eclipse-inst
比我在下面的帖子中创建启动图标,之后当我尝试启动 Eclipse 时,我收到此消息: eclipse-executable-launcher-error-unable-to-locate-companion-shared-library 并且无法启动它。
知道发生了什么吗?
这是我尝试从终端启动时收到的消息:
../../../../root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417: cannot open shared object file: Permission denied
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Run Code Online (Sandbox Code Playgroud)
你好,
实际上,当我尝试使用 sudo 从终端启动 Eclipse 并输入密码时,我可以启动它。Eclipse 似乎没有足够的权限来启动。
有人知道该怎么做吗?要更改安装 Eclipse 的整个文件夹的权限?
我正在尝试将 CDT 添加到现有的 Eclipse JDT 安装中。
我正在遵循以下过程:
http://download.eclipse.org/tools/cdt/releases/juno
作为存储库的位置。(顺便说一句,如果我在从 eclipse 站点 - CDT master下载本地存档后尝试添加它,则会发生同样的错误)在下一个窗口中,我会收到以下错误提示:
无法完成安装,因为找不到一个或多个必需的项目。正在安装的软件:C/C++ Remote Launch 6.0.0.201302132326 (org.eclipse.cdt.launch.remote.feature.group 6.0.0.201302132326) 缺少要求:C/C++ Remote Debug Launcher 2.4.0.201302132326 (org.eclipse.cdt.launch.remote.feature.group 6.0.0.201302132326) .remote 2.4.0.201302132326) requires 'bundle org.eclipse.rse.ui [3.0.0,4.0.0)' 但找不到它不能满足依赖:来自:C/C++ Remote Launch 6.0.0.201302132326 (org.eclipse) .cdt.launch.remote.feature.group 6.0.0.201302132326) 至:org.eclipse.cdt.launch.remote [2.4.0.201302132326]
奇怪的是,如果我只是在上一个屏幕中选择 CDT MAIN 功能安装,一切都很好,并且在实际安装之前我会被要求接受许可条款。
所以我有两个问题:
I am trying to build a library (libaiml). I was having problems installing the library using normal methods:
./configure ; make ; make install
Run Code Online (Sandbox Code Playgroud)
In the README, the author says you should use this method to install the libarary, but the standard download does not come with a configure file.
To get around this, I decided to import the source into eclipse and try building the library myself. Now I am having a problem resolving the libxml2 dependency. …