简体   繁体   English

尝试使用Codelite / G ++进行编译

[英]Trying to compile with codelite/g++

I am new to codelite and have set up a new g++ Project: 我是Codelite的新手,并建立了一个新的g ++项目:

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("hello world\n");
    return 0;
}

However, if I click 'Build Active Project' the Build ouput says: 但是,如果单击“生成活动项目”,则生成输出会显示:

/bin/sh -c ' -j 1 -e -f Makefile' / bin / sh -c'-j 1 -e -f Makefile'
/bin/sh: 1: -j: not found / bin / sh:1:-j:找不到
0 errors, 0 warnings 0错误,0警告

I tried the by default generated Makefile as well as a custom one. 我尝试了默认生成的Makefile以及自定义的Makefile。 What is wrong here that the build operation fails without any error? 生成操作失败没有任何错误的地方在哪里呢?


I'm using following software: 我正在使用以下软件:
OS: Ubuntu 14.04.01 LTS 64bit , as a virtual machine with Windows 7 as Host 操作系统: Ubuntu 14.04.01 LTS 64bit ,作为以Windows 7为主机的虚拟机
IDE: CodeLite 7.0 for Trusty Tahr (=Ubuntu 14.04) IDE: 适用于Trusty Tahr的CodeLite 7.0 (= Ubuntu 14.04)
Compiler, Tools: I installed g++ and gdb from the command line, in case I forgot something, I listed the output of apt list 编译器,工具:我从命令行安装了g ++和gdb,以防万一我忘记了一些东西,我列出了apt list输出

In 'Settings... -> Build Settings... -> Compiler : Make' 在“设置...->构建设置...->编译器:制作”中

You should have: 你应该有:

make -j 1

And make sure that make is installed on your machine. 并确保在计算机上安装了make。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM