* NOOB * codeblocks C ++错误 [英] *NOOB* codeblocks C++ error

查看:105
本文介绍了* NOOB * codeblocks C ++错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的(第2天),当然已经无法解决这个问题!!!!我正在使用C ++ For Dummies 3rd edition和第一个......非常第一个项目,我已经遇到了问题。每次我尝试构建和运行



I am new (Day 2) and of course already can't solve this problem!!!! I am using "C++ For Dummies 3rd edition" and the first... VERY FIRST project and I already have a problem. Every time I try to build and run

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}







返回






It Returns

-------------- Run: Debug in SayHello (compiler: GNU GCC Compiler)---------------

Checking for existence: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
Executing: xterm -T SayHello -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello  (in /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/.)
Process terminated with status -1 (0 minute(s), 0 second(s))







它不会运行。我使用Linux请帮助!



(编辑)



我运行并调试我也得到了这个信息是否有用:






And it won't run. I use Linux PLEASE HELP!

(EDIT)

I ran and debug and I also got this information if it is helpful:

Building to ensure sources are up-to-date
Selecting target: 
Debug
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding file: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
Changing directory to: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/.
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Can't launch console (xterm -T 'Program Console' -e sleep 80031434)
Debugger name and version: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
[Inferior 1 (process 32030) exited normally]
Debugger finished with status 0
Selecting target: 
Debug
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding file: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
Changing directory to: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/.
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Can't launch console (xterm -T 'Program Console' -e sleep 80031434)
Debugger name and version: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
[Inferior 1 (process 32037) exited normally]
Debugger finished with status 0





我尝试过:



按照所有步骤重新启动。正在搜索Google! (找不到)



What I have tried:

Restarting, following all steps. Searching Google! (Found Nothing)

推荐答案

LD_LIBRARY_PATH:。 / home / coldavian / C ++ / CPP_AIO / BookI / Chapter02 / SayHello / bin / Debug / SayHello(在/ home / coldavian / C ++ / CPP_AIO / BookI / Chapter02 / SayHello /。)
流程终止,状态为-1( 0分钟,0秒(s))
LD_LIBRARY_PATH:. /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello (in /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/.) Process terminated with status -1 (0 minute(s), 0 second(s))







它不会运行。我使用Linux请帮助!



(编辑)



我运行并调试我也得到了这个信息是否有用:






And it won't run. I use Linux PLEASE HELP!

(EDIT)

I ran and debug and I also got this information if it is helpful:

Building to ensure sources are up-to-date
Selecting target: 
Debug
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding file: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
Changing directory to: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/.
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Can't launch console (xterm -T 'Program Console' -e sleep 80031434)
Debugger name and version: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
[Inferior 1 (process 32030) exited normally]
Debugger finished with status 0
Selecting target: 
Debug
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding source dir: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/
Adding file: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
Changing directory to: /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/.
Set variable: LD_LIBRARY_PATH=.:
Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/coldavian/C++/CPP_AIO/BookI/Chapter02/SayHello/bin/Debug/SayHello
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Can't launch console (xterm -T 'Program Console' -e sleep 80031434)
Debugger name and version: GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
[Inferior 1 (process 32037) exited normally]
Debugger finished with status 0





我尝试过:



按照所有步骤重新启动。正在搜索Google! (找不到任何东西)



What I have tried:

Restarting, following all steps. Searching Google! (Found Nothing)


到目前为止,我已经进行了编码,并且自7月16日以来一直没有!我已经决定将其作为职业生涯!谢谢你帮我解决了我的第一个问题; p!祝所有人好运



解决方案是安装XTERM

它使用的终端:p或只是将它改成你想要的设置
I have gotten so far into coding and its only been since July 16! I have already decided to take it on as a career! Thanks for helping me with my first problem ;p ! Good luck to all

SOLUTION IS TO INSTALL XTERM
Terminal it uses :p or just change it to what you want in settings


到目前为止,我已经进行了编码,并且自7月16日以来一直没有!我已经决定将其作为职业生涯!谢谢你帮我解决了我的第一个问题; p!祝所有人好运
I have gotten so far into coding and its only been since July 16! I have already decided to take it on as a career! Thanks for helping me with my first problem ;p ! Good luck to all


这篇关于* NOOB * codeblocks C ++错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆