Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Does mwcc work on Tiger?

 
   Mac (Home) -> Programmer Code RSS
Next:  Where next?  
Author Message
Stefan Haller

External


Since: Mar 17, 2006
Posts: 14



(Msg. 1) Posted: Mon May 30, 2005 9:31 pm
Post subject: Does mwcc work on Tiger?
Archived from groups: comp>sys>mac>programmer>codewarrior, others (more info?)

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/
Back to top
Login to vote
MW Ron

External


Since: Jun 06, 2005
Posts: 31



(Msg. 2) Posted: Thu Jun 02, 2005 2:12 pm
Post subject: Re: Does mwcc work on Tiger? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1gxe8gf.mskt5113plybmN%stk@snafu.de>,
stk.DeleteThis@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.DeleteThis@metrowerks.com - http://www.metrowerks.com
Back to top
Login to vote
Stefan Haller

External


Since: Mar 17, 2006
Posts: 14



(Msg. 3) Posted: Fri Jun 03, 2005 10:07 am
Post subject: Re: Does mwcc work on Tiger? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stefan Haller <stk RemoveThis @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/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Compiled on Tiger, won't run on Panther - Hello, When I compile my app on a Tiger machine, it no longer will run on my Panther machines. Does anyone know what this could be? Thanks B

Bug in alloc.c? - I'm getting an infinite loop in alloc.c, which is located in MSL/MSL_C/MSL_Common/Src. This is with CW 9.5. The function is allocate_from_var_pools. There is a do/while loop that searches for a block with the required size to allocate a block of..

Multiply defined symbol: .bss - Hi, when trying to build a dll for Windows using CW9 on MacOS, I get an error message like: Link Error : Multiply defined symbol: .bss in files file1.cpp, file2.cpp The same message with the same filenames is repeated several times, but....

Where next? - Hi folks, All of my recent Mac coding has been Carbon C++, mostly using PowerPlant as a framework. As most of my clients are moving to X and CW's future is, shall we say, uncertain I'm wondering where to look for my future coding setup. I've dabbled....

Console app "file" selector - Hello, I feel like I've asked this before, but I did a search on the archives and came up short. I've got a console std c app that I'm compiling with CW. When it runs, it pops up a little menu where I can type in some command line arguments (for..
       Mac (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact