ChinaUnix.net
相关文章推荐:

liunux 编译cpp

各位好: 我用的机器是HP-ux11.0,我不知如何用cc选项编译.cpp文件,请各位高手赐教,在此深表感谢!

by fafkj - HP-UX - 2003-02-25 11:53:00 阅读(894) 回复(0)

相关讨论

运行如下makefile文件出错 # # Makefile for stand-alone kpoint generator from xpw # SHELL = /bin/sh PARAM = param.h #FFLAGS = -dp #PRECISION = #cpp = /opt/ctl/bin/cpp -P -DPARAM_H=\"$(PARAM)\" #FC = f90 #COMPRESS = | compress -v #SHAR = shar #TAR = tar cvf - # SYS5/AT: [will not load w/-Ms; compiler error on crystl w/-Ml] # FFLAGS = -Ms PRECISION = | single cpp = /lib/cpp -P -DPARAM_H=\"$(PA...

by joyzzy - C/C++ - 2004-01-05 16:27:58 阅读(516) 回复(0)

我的dos下的cl命令不能识别,请求指教!谢谢

by Elegant-Man - C/C++ - 2006-10-29 03:05:48 阅读(2468) 回复(5)

平常在Linux下的,这回到win下看QQ消息,结果dev-cpp不能编译了,卸载了重装,也还一样。就是一句“unable to run program file”,大家有没有遇到过这个问题的?有办法的话告诉小弟一声,谢谢

by albcamus - C/C++ - 2004-11-03 19:35:21 阅读(830) 回复(1)

#hello.cpp #include ; void main(void) { cout<<"hello!"<cpp error: 'main' must return 'int' 'cout' undeclared 'endl' undeclared 为什么会出现这样的错误呀?? 是不是gcc没有配置好??

by softmachine - 其他UNIX - 2003-08-17 12:33:35 阅读(732) 回复(1)

//hello.cpp void main(void) { cout<<"hello!mytest"<cpp warning:no new line at end of file #./hello Memory fault - core dumped 怎么会这样??是gcc没设置好吗??[/quote]

by softmachine - C/C++ - 2003-08-18 09:54:44 阅读(1326) 回复(14)

在linux下compat-gcc-32-3.2.3-47.3中有个cpp0预编译器,类似于unix下的cc -P命令,用它编译proc*c和sqc程序很好用,但是到随着gcc版本的提交,在3.2.3以后的版本中就没有这个cpp0了,请教各们大虾,在gcc后续的版本中替换cpp0的是哪个命令呢。 我知道有一个cpp命令,在编译sqc时没有问题,但编译proc*c时就有问题了。 能说明一下cpp0和cpp的区别呢,您常使用的预编译工具是哪个?谢谢

by legone2008 - C/C++ - 2009-09-05 17:47:03 阅读(908) 回复(1)

有两个疑问 1、proC预编译能否支持C++呢? 2、在程序中需要使用到类的概念大家是怎么做的呢? 如果不行,大家是不是把每个对数据库的sql功能操作写成一个个*.pc,然后用C++进行一层封装在内部调用这些功能操作,从而使支持C++程序啊。

by ok.aaron - Oracle - 2008-08-01 15:37:54 阅读(2027) 回复(3)

Linux+Informix+cpp 程序编译后运行出错如下: “error while loading shared libraries: libifc++.so: cannot open shared object file: No such file or directory” 在 Makefile 文件里已经包含了 libifc++.so 所在的路径为 LIBS_cppIF = -L$(INFORMIXDIR)/lib/c++ -lifc++ 不知道怎样解决这个问题,请高手指点(除了重新安装informix,.ec 程序编译后运行正常)

by roam999 - Informix - 2008-05-27 14:28:38 阅读(1777) 回复(2)

.c文件中include了一个.h文件,而.h文件里面是类的定义, .cpp文件中是类的函数... 这个如何用gcc编译

by x1aon1ao - C/C++ - 2007-08-10 09:16:33 阅读(2304) 回复(7)

从网上直接下载了个 gcc.tar 2.95for sco unix 用 custom安装后 进行测试 发现凡是编译含有 string 类的 .cpp文件 都会报 错: string undeclared ,已经包含 string.h 头文件 这是什么原因? [ 本帖最后由 llslls_007 于 2007-1-15 09:07 编辑 ]

by llslls_007 - 其他UNIX - 2007-01-15 23:47:01 阅读(1155) 回复(2)