C ++代码不会在Linux下执行。 [英] C++ code wont execute under Linux.

查看:90
本文介绍了C ++代码不会在Linux下执行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我输入./a.out并且shell就在那里。它不会挂起它只是

坐在那里看起来很漂亮。


我使用ddd选项运行程序并执行它来自

ddd ...执行窗口出现,没有任何显示。

我使用anjuta相同的东西。没有编译器错误没有警告,但它不会执行
.

检查文件的执行情况及其执行情况..没有

执行来自绝望,....同样糟糕。

是的,我做了。


WTF丢失了吗?


正如我所说,在编译期间,没有错误,也没有警告。为了简单起见,我将我的

self降级为一个简单的hello world程序

解决方案



penguinman< ba ****** @ linuxmail.org>在消息中写道

news:96 ************************** @ posting.google.c om ...

我输入./a.out并且shell就在那里。它不会挂起它只是坐在那里看起来很漂亮。

我使用ddd选项运行程序并从
执行它ddd ...执行窗口出现并且没有任何显示。
我用anjuta一样的东西。没有编译器错误没有警告,但它不会执行。
检查文件的执行情况及其执行情况。没有执行绝望,....同样糟糕。
是的,我做了。

WTF丢失了?

正如我所说,在编译期间,没有错误,也没有警告。为了简单起见,我将我的
自我降级为简单的hello world程序




你在第37行有一个错误。

-Mike




" penguinman" < BA ****** @ linuxmail.org>在消息中写道

news:96 ************************** @ posting.google.c om ...

我输入./a.out并且shell就在那里。它不会挂起它只是坐在那里看起来很漂亮。

我使用ddd选项运行程序并从
执行它ddd ...执行窗口出现并且没有任何显示。
我用anjuta一样的东西。没有编译器错误没有警告,但它不会执行。
检查文件的执行情况及其执行情况。没有执行绝望,....同样糟糕。
是的,我做了。

WTF丢失了?

正如我所说,在编译期间,没有错误,也没有警告。为了简单起见,我将我的
自我降级为简单的hello world程序




为什么你没有发布代码?我们怎么知道什么可能会导致什么错误?如果它的Linux帮助或编译器帮助您需要b / b $ b,那么请在专门针对这些主题的新闻组中询问。我们在这里帮助解决C ++

问题,你还没有发布任何C ++代码。


-Howard


" penguinman" < BA ****** @ linuxmail.org>写道...

[...]

WTF丢失了?

正如我所说,在编译期间,没有错误,也没有警告。为了简单起见,我把我的
自我降级为一个简单的hello world程序




这是FAQ 5.8


Victor


I type ./a.out and the shell just sits there. It doesnt hang it just
sits there looking pretty.

I run the program with the ddd option and executed it from
ddd...execution window comes up and nothing shows up.
I used anjuta same thing. No compiler errors no warnings but it wont
execute.
Checked the permisions of the file and its execute..tried with no
execute from desperation,....same shit.
And yeah i got make.

WTF is missing?

As I said, during compile, NO ERRORS and NO WARNINGS. I demoted my
self to a simple hello world program just to keep things simple

解决方案


penguinman <ba******@linuxmail.org> wrote in message
news:96**************************@posting.google.c om...

I type ./a.out and the shell just sits there. It doesnt hang it just
sits there looking pretty.

I run the program with the ddd option and executed it from
ddd...execution window comes up and nothing shows up.
I used anjuta same thing. No compiler errors no warnings but it wont
execute.
Checked the permisions of the file and its execute..tried with no
execute from desperation,....same shit.
And yeah i got make.

WTF is missing?

As I said, during compile, NO ERRORS and NO WARNINGS. I demoted my
self to a simple hello world program just to keep things simple



You have a bug on line 37.

-Mike



"penguinman" <ba******@linuxmail.org> wrote in message
news:96**************************@posting.google.c om...

I type ./a.out and the shell just sits there. It doesnt hang it just
sits there looking pretty.

I run the program with the ddd option and executed it from
ddd...execution window comes up and nothing shows up.
I used anjuta same thing. No compiler errors no warnings but it wont
execute.
Checked the permisions of the file and its execute..tried with no
execute from desperation,....same shit.
And yeah i got make.

WTF is missing?

As I said, during compile, NO ERRORS and NO WARNINGS. I demoted my
self to a simple hello world program just to keep things simple



So why haven''t you posted the code? How are we supposed to know what might
be wrong with nothing to go by? If it''s Linux help or compiler help you
need, then ask in a newsgroup dedicated to those topics. We help with C++
problems here, and you''ve not posted any C++ code to look at.

-Howard


"penguinman" <ba******@linuxmail.org> wrote...

[...]

WTF is missing?

As I said, during compile, NO ERRORS and NO WARNINGS. I demoted my
self to a simple hello world program just to keep things simple



This is FAQ 5.8

Victor


这篇关于C ++代码不会在Linux下执行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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