Subject:
|
egcs compiler - float problems?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Fri, 10 May 2002 13:12:04 GMT
|
Viewed:
|
2344 times
|
| |
| |
Can someone using the egcs compiler suite test the following code? It seems
it doesn't compile under egcs.
int main(int argc, char *argv[]) {
double foo = 1.0;
return foo > 0.1 ? 0 : 1;
}
Compiles fine under gcc 3.0.3.
Regards,
Michael
|
|
Message has 1 Reply: | | Re: egcs compiler - float problems?
|
| (...) I have not tried to compile this, but one thing that looks suspicious is that you are using doubles. Doubles are not supported. The compiler I have (some old version of GCC) treats doubles and floats as the same type. The compiler you're using (...) (23 years ago, 10-May-02, to lugnet.robotics.rcx.legos)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|