To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2551
2550  |  2552
Subject: 
egcs compiler - float problems?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 10 May 2002 13:12:04 GMT
Viewed: 
2204 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 (...) (22 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR