由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] a C++ template question (code inside)
相关主题
在 windows下的C++开发平台是不是 Dev-C++?C array
面试被问到G++和GCC编译器的关系A C++ compiler related interview question
Help: Another C++ compilation error on GCCDo the two statements cost the same amount of time?
C++ question[合集] 大拿们,问一个redhat linux下C编程 make error 139的问
tail call strange behavior on cl.exe有没有这样的ide功能
求GCC高手which gcc version is good for aix 6
Eclipse JNI问题, 拜谢recommend assembly code from gcc
C++ Boost怎么样,好用吗?Linux Makefile: How to include cpp files in subfolder for (转载)
相关话题的讨论汇总
话题: theta话题: c++话题: compiles话题: template
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
yapple (Fedora) 于 (Thu Apr 24 12:07:34 2008) 提到:
source code isd in the attachment. It compiles OK on Visual Studio 2005 on
WinXP. But it failed to compile in GCC 4.1.1 on Linux. But if I change the
statement in //2:
a = 1.0 / ( (m1 * cos(theta)) + (m2 * sin(theta)) ).Length();
to //1:
Vector3DFloat x1 = m1 * cos(theta);
Vector3DFloat x2 = m2 * sin(theta);
a = 1.0/(x1+x2).Length();
Then it compiles fin in GCC4.1.1. These two are euivalent. The error
m
1 (共1页)
进入Programming版参与讨论
相关主题
Linux Makefile: How to include cpp files in subfolder for (转载)tail call strange behavior on cl.exe
A tech question (转载)求GCC高手
An interesting C++ compile errorEclipse JNI问题, 拜谢
谁来解释一下这个是compiler问题吗?C++ Boost怎么样,好用吗?
在 windows下的C++开发平台是不是 Dev-C++?C array
面试被问到G++和GCC编译器的关系A C++ compiler related interview question
Help: Another C++ compilation error on GCCDo the two statements cost the same amount of time?
C++ question[合集] 大拿们,问一个redhat linux下C编程 make error 139的问
相关话题的讨论汇总
话题: theta话题: c++话题: compiles话题: template