gcc4

gcc4

文章 0 浏览 1

无法将流代码与 gcc 链接

我在编译以下代码时遇到问题: // writing on a text file #include &ltiostream&gt #include &ltfstream&gt using namespace std int main () { ofst…

我不在是我 2024-10-08 18:09:35 0 0

Boost multi_index_container,按标签获取索引会导致编译器错误

所以,我试图涉足 multi_index_container 并遇到一个相当奇怪的编译器错误,首先这里是演示我的问题的最简单的示例(我可能错过了一些愚蠢简单的东西…

无人问我粥可暖 2024-10-07 22:32:10 0 0

强制VS2008发出类似于“警告:有符号和无符号整数表达式之间的比较”的GCC警告

与 从 'int' 转换为 'size_t' 可能会更改结果的符号 - GCC 、 C 中描述的内容相同,我想确保在 32 位和 64 位编译下,我在 GCC 4.2.1 下收到的警告也…

池予 2024-10-06 22:03:51 1 0

为什么我会收到 cc1plus: error: unrecognized command line option “-arch”?

/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf /usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/cpp…

〗斷ホ乔殘χμё〖 2024-10-06 12:50:23 2 0

强制 GCC 4.x 将 -Wreturn-type 视为错误而不启用 -Werror?

假设我们有以下代码: #if !defined(__cplusplus) # error This file should be compiled as C++ #endif #include &ltstdio.h&gt #include &ltstring&…

一场信仰旅途 2024-10-03 02:14:48 1 0

Mac 上的问题:“重新加载 asm 时无法在 BREG 类中找到寄存器”

我尝试将一些代码移植到 Mac OS X 上。 该程序使用“ttmath”库,一个头文件 big-num 头库。 这个库在windows和linux上都工作得很好,但是当我尝试在M…

抽个烟儿 2024-09-29 08:49:02 2 0

无匹配功能 - 专业签名隐藏通用?

我刚刚遇到了以下 C++ 编译器错误: no matching function for call "EPTDerivedException::HandleClass( BaseClass&amp )" candidates are: void EPT…

在你怀里撒娇 2024-09-28 10:08:22 1 0

意外的 const 引用行为

#include &ltiostream&gt class A { public: A(){ cerr &lt&lt "A Constructor" &lt&lt endl } ~A(){ cerr &lt&lt "A Destructor" &lt&lt endl } A(co…

权谋诡计 2024-09-10 01:44:54 2 0

这种使用offsetof有​​什么问题吗?

我正在 MinGW GCC 4.4.0 中编译一些 c++ 代码,并收到以下形式的警告... warning: invalid access to non-static data member '&ltmembername&gt' of …

神经暖 2024-09-07 14:46:45 1 0

-march=native 到底是做什么的?

Gentoo 维基告诉我以下内容: 警告:GCC 4.2 及更高版本支持 -march=本地。 -march=native 应用 -march 之外的其他设置, 特定于您的 CPU。除非你有 …

鸠书 2024-09-04 22:36:13 4 0

pow 不接受第二个参数作为 gcc 上的变量

pow 不接受第二个参数作为 gcc 上的变量 以下代码在 VC++10 上工作正常 // file test.cc #include "stdafx.h" #include &ltstdio.h&gt #include &ltma…

梦冥 2024-09-02 06:38:44 1 0

如何使用gcc 4.5?

http://gcc.gnu.org/install/binaries.html 此页面有二进制文件。哪一个适用于 Fedora?…

似狗非友 2024-09-02 00:49:40 3 0

为什么 gcc4 发出警告以及如何避免它

我有一个函数声明为: void event_add_card (EventAddr addr, EventType type, unsigned char card) 和 union typedef union EventData { float money…

纵情客 2024-08-29 05:39:12 7 0

一些了解 GCC 源代码的指针

我是一名学生,致力于为多核处理器优化 GCC。我尝试查看源代码,但很难跟踪它,因为我需要在后端添加一些代码。任何人都可以建议一些好的资源来解释不…

人心善变 2024-08-25 23:00:19 12 0

与 gcc 链接时出错

我尝试编译此代码: #include &ltiostream&gt #include &ltcstdlib&gt using namespace std #define ARRAY_TAM 2 typedef int (*operacion)(int, int)…

流殇 2024-08-15 16:21:35 2 0
更多

推荐作者

qq_FjTq5B

文章 0 评论 0

18273202778

文章 0 评论 0

WordPress小学生

文章 0 评论 0

〃温暖了心ぐ

文章 0 评论 0

迷乱花海

文章 0 评论 0

niuniu

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文