关于dev-c++4970的一些问题

hellwolf 2003-02-06 02:27:52
不知是否其他原因
在我机器上安装后,不能直接编译,他的include路径还有些问题,修改后才可以使用,而且到现在我还不能使用它的debug功能,老有问题
不知是否有人遇到过同样问题
...全文
64 35 打赏 收藏 转发到动态 举报
写回复
用AI写文章
35 条回复
切换为时间正序
请发表友善的回复…
发表回复
idler 2003-02-12
  • 打赏
  • 举报
回复
GCC 3.2就不行
ilmself0451 2003-02-12
  • 打赏
  • 举报
回复
要是用DEVCPP的话,最好去下载新的版本,devcpp4970-gcc295,大约11M。安装时使用完全安装
然后就可以了,No problem !
idler 2003-02-12
  • 打赏
  • 举报
回复
不明白这句的意义
whoke 2003-02-12
  • 打赏
  • 举报
回复
不是new的问题.
是这一句:
a.BS::bitset<sizeof(int)*8> (in);
main.cpp:18: parse error before `in'
但在vc6中就没有问题.
hellwolf 2003-02-12
  • 打赏
  • 举报
回复
不明白:a.BS::bitset<sizeof(int)*8> (in);
whoke 2003-02-11
  • 打赏
  • 举报
回复
下面的代码在4.9.70中通不过,在VC6中没有问题:
#include <iostream>
#include <bitset>
#include <cstdlib>
using namespace std;

int main(int argc ,char ** argv)
{
typedef bitset<sizeof(int)*8> BS;
BS a;
BS *p;
for(int i=0; i<5; ++i)
{
int in;
cin>>in;
p= new (&a) BS(in);
a.BS::bitset<sizeof(int)*8> (in);
cout<<a<<endl;
}

system("PAUSE");
return 0;
}
swotcoder 2003-02-11
  • 打赏
  • 举报
回复
:) 3.2 从二进制上就不兼容 2.9!
hellwolf 2003-02-11
  • 打赏
  • 举报
回复
to whoke(hy)
add:
#include <new>
Because you use the placement new
21st_centry_fox 2003-02-10
  • 打赏
  • 举报
回复
什么时候标准的下来了就好了
hellwolf 2003-02-10
  • 打赏
  • 举报
回复
为什么现在vupdate不能用了?
whoke 2003-02-10
  • 打赏
  • 举报
回复
no problem in 4.9.70.
whoke 2003-02-10
  • 打赏
  • 举报
回复
各位帮我试试下面的代码(在vc 6.0能正常执行,当不能通过dev-c++4.9.30)
#include <iostream>
#include <cstdlib>
using namespace std;

class A
{
public:
A(int a=0 ):_a(a){};
int _a;
};

int main(int argc ,char ** argv)
{
A a(5);
A *p;
p= new (&a) A(6);
cout<<a._a<<endl;

system("PAUSE");
return 0;
}
kolong 2003-02-10
  • 打赏
  • 举报
回复
谢谢idler的指教,我已经看到结果了。
idler 2003-02-09
  • 打赏
  • 举报
回复
加#include <stdlib.h>

main函数的最后加
system("PAUSE");
kolong 2003-02-09
  • 打赏
  • 举报
回复
我用4.0版编译通过了了Hello程序,但是怎样才能看到输出的 "hello,world"?
hellwolf 2003-02-08
  • 打赏
  • 举报
回复
to:mr_oydy(bach)
有同感
hqtz 2003-02-07
  • 打赏
  • 举报
回复
还是测试版,不大稳定,有些功能不能非常使用,我在盼望着正式版发布。
请问谁知道 GCC 3.2 For Win32 在哪可以下载?
idler 2003-02-07
  • 打赏
  • 举报
回复
你下载的是没有整合MinGW的Dev-C++。
解决方法:
1.下载整合了MinGW的Dev-C++。(10M左右)
2.下载MinGW和mSYS,然后在tools\compile options\directory中加入MinGW的bin、include、lib以及mSYS的bin路径。
hellwolf 2003-02-07
  • 打赏
  • 举报
回复
ahchoow(ahchoow) :
你的问题解决办法
1:将Dev-Cpp\include\c++\mingw32\bits\* 拷贝到 Dev-Cpp\include\c++\bits\
2:a.将#include <iostream.h>改为
#include <iostream>
using namespace std;
b.或者在菜单tools\compile option\ directory\c++
中添加Cpp\include\c++\backward
mr_oydy 2003-02-07
  • 打赏
  • 举报
回复
我还是在用4950, 我也觉得奇怪4970除了多问题外, 编绎速度好像慢了许多.
加载更多回复(15)

15,440

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧