Problem Compiling on Mac Os X

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Elenaher
Posts: 4
Joined: Tue Oct 03, 2006 4:04 am

Problem Compiling on Mac Os X

Post by Elenaher »

Hello,

I've many difficulties to compile pspsdk on my Mac.
I'm using Os 10.4.7.
I got many warnings from gcc during the compilation ( especially "warning: function declaration isn't a prototype" ).
At the end i got an "fatal" error on the compilation of a file named "flat_bl.m" :

Code:

Code: Select all

gcc -g -O2    -c -o flat_bl.o ../../gprof/flat_bl.m
../../gprof/flat_bl.m:2: error: parse error before '%' token
make[3]: *** [flat_bl.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-gprof] Error 2
ERROR BUILDING BINUTILS
I had already posted this error in an other topic but it seems that nobody has seen it...

Thx for your help...
User avatar
dsn
Posts: 47
Joined: Wed Nov 09, 2005 11:48 am
Location: Indianapolis, Indiana, USA

Post by dsn »

The compiler on OS X is hardwired to interpret .m files as Objective-C. Look at this thread for help: http://forums.ps2dev.org/viewtopic.php?p=40365#40365
Elenaher
Posts: 4
Joined: Tue Oct 03, 2006 4:04 am

Post by Elenaher »

Thx a lot for your help. This post should be deleted...
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

YOu do realise 10.4.8 exists dont you :|
Post Reply