Thread View: comp.sys.mac.programmer.codewarrior
3 messages
3 total messages
Started by Stefan Haller
Mon, 30 May 2005 19:31
Does mwcc work on Tiger?
Author: Stefan Haller
Date: Mon, 30 May 2005 19:31
Date: Mon, 30 May 2005 19:31
30 lines
1239 bytes
1239 bytes
Anybody using the comand line compilers on 10.4?
When saving the following simple program as /tmp/x.cpp:
int main()
{
double x = 0.5;
return 0;
}
and trying to compile it with
$ mwcc -c /tmp/x.cpp
, I get the error message
Error : invalid floating-point constant
/tmp/x.cpp line 3 double x = 0.5;
Needless to say, it compiles fine on 10.3.
I'm using CW 9.5, mwcc is version 3.2.6 build 437.
Any ideas?
--
Stefan Haller
Berlin, Germany
http://home.snafu.de/stk/
Re: Does mwcc work on Tiger?
Author: MW Ron
Date: Thu, 02 Jun 2005 18:12
Date: Thu, 02 Jun 2005 18:12
36 lines
1792 bytes
1792 bytes
In article <1gxe8gf.mskt5113plybmN%stk@snafu.de>,
stk@snafu.de (Stefan Haller) wrote:
>Anybody using the comand line compilers on 10.4?
>
>When saving the following simple program as /tmp/x.cpp:
>
> int main()
> {
> double x = 0.5;
> return 0;
> }
>
>and trying to compile it with
>
>$ mwcc -c /tmp/x.cpp
>
>, I get the error message
>
> Error : invalid floating-point constant
>/tmp/x.cpp line 3 double x = 0.5;
>
>Needless to say, it compiles fine on 10.3.
>
>I'm using CW 9.5, mwcc is version 3.2.6 build 437.
I'll see if we can duplicate this in house.
Ron
--
Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
-- http://www.metrowerks.com/community --
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Re: Does mwcc work on Tiger?
Author: Stefan Haller
Date: Fri, 03 Jun 2005 08:07
Date: Fri, 03 Jun 2005 08:07
26 lines
1387 bytes
1387 bytes
Stefan Haller <stk@snafu.de> wrote:
> Anybody using the comand line compilers on 10.4?
>
> When saving the following simple program as /tmp/x.cpp:
>
> int main()
> {
> double x = 0.5;
> return 0;
> }
>
> , I get the error message
>
> Error : invalid floating-point constant
> /tmp/x.cpp line 3 double x = 0.5;
I figured it out: it's a locale thing. I have LANG=de_DE.ISO8859-1 in
my environment; if I unset LANG, it compiles fine. Seems like a pretty
bad bug to me; parsing of C code should not be locale-dependent.
--
Stefan Haller
Berlin, Germany
http://home.snafu.de/stk/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads