ChinaUnix.net
相关文章推荐:

stl linux

[shell@localhost op]$ g++ stl.cpp -o op GCC expected primary-expression before ‘.’ token ..................[N的这种错误] -- G的第一条就不是答案,问题真多,但很单一,怎么回事? [ 本帖最后由 action08 于 2008-8-14 20:25 编辑 ]

by action08 - C/C++ - 2008-08-18 08:59:00 阅读(3452) 回复(9)

相关讨论

问题情况如下: 环境:Linux 语言:C++ 类: 问题: 主程序里定义一个queue,然后启动两个线程,这个线程类由pthread实现但没有同步,一个线程往queue里放东西,另一个线程从queue里读,读一个pop一个,但在pop时出错.即时我对两个线程同步也会出现这种情况. 有没有高手有什么好的方法,本人万分感激.

by netf - C/C++ - 2006-02-26 16:09:09 阅读(1822) 回复(1)

请问在LINUX使用STL是否需要安装STL库,或者已经自带了? 在哪个目录下呢?我找了半天怎么没找着. 在这先谢谢大家了! 附上我的编译错误信息: showscreen.h:15: error: ISO C++ forbids declaration of `list' with no type showscreen.h:15: error: expected `;' before '<' token showscreen.h:20:7: warning: no newline at end of file showscreen.cpp:9: error: definition of implicitly-declared `CShowScreen::CShowScreen()...

by doublefox - C/C++ - 2005-03-14 03:37:52 阅读(2445) 回复(1)

谁知道的,能否Tell me?

by tingya - 程序开发 - 2003-09-27 19:48:42 阅读(968) 回复(1)

谁知道的,能否Tell me?

by tingya - Linux环境编程 - 2003-09-27 19:48:42 阅读(1942) 回复(1)

//============================================================================ // Name : tst.cpp // Author : xiangxianhan //============================================================================ #include #include #include #include #include #include #include #include #include #include

linuxstl内存共享专家解答

by jueduiyingxiong - Linux环境编程 - 2011-10-28 12:57:07 阅读(3426) 回复(0)
by bfyviolin - C/C++ - 2010-02-22 11:24:35 阅读(5599) 回复(6)

困扰了,怎么弄才能让arm-linux-gcc 支持stl 呢 我用写了一个程序,用g++ 能够编译通过,具体程序如下,我需要将此程序放在arm 中跑,需要添加什么呢 程序如下: #include #include #include #include using namespace std; int main() { multimap m; m.insert(pair("a", 1)); m.insert(pair("c", 2)); m.ins...

by jj601 - 嵌入式开发 - 2009-09-12 17:29:08 阅读(3058) 回复(3)

linux下c/c++是否用stl库?不使用stl库行吗? 1)c/c++能连接数据库吗?如:mysql,等等! 2) c/c++ 编写浏览器吗?能调用和编写xml,php??

by LJXHERO - C/C++ - 2007-12-27 16:57:31 阅读(6586) 回复(11)

本帖最后由 reiase 于 2011-06-15 11:34 编辑 如题,程序在Linux/GCC 4.5下速度很快,大概1秒 在VC下,跑了10分钟不见结果出来啊 后来换了mingw编译器,结果一样滴慢 整个程序就300来行,只用了Vector,pair和结构体 大概定义如下: struct{ int a; double b; vector< pair >c; } typeA; struct{ int a; double b; vector< typeA >c; } typeB; 求大牛帮忙分析原因

by reiase - C/C++ - 2011-06-15 22:44:27 阅读(3355) 回复(8)

我在源文件里定义了 #include ; 之类,gcc链接时候报有一大堆东西找不到,需要指定一些特定的库文件么?

by siceng - C/C++ - 2005-07-05 22:59:21 阅读(3641) 回复(2)