Global objects don't work on Mac
|
|
Bugzilla Link |
302 |
Created on |
Oct 10, 2006 08:37 |
Resolution |
FIXED |
Resolved on |
Oct 26, 2006 09:24 |
Version |
1.00beta |
OS |
MacOS X |
Architecture |
Macintosh |
Extended Description
I tried to compile this simple Hello World program
import StdIO: all;
int main() {
printf("Hello World");
return(0);
}
The linker complained that global objects are not defined:
** 18: Invoking C compiler: ...
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-R.'
/usr/bin/ld: Undefined symbols:
_SACo_TermFile__stdout
SACo_TermFile__stdout(double,...)(short, char)
_SACo_Terminal__TheTerminal
SACo_Terminal__TheTerminal(double,...)(short, char)
_SACo_World__TheWorld
SACo_World__TheWorld(double,...)(short, char)
SACo_TermFile__stdin(double,...)(short, char)
collect2: ld returned 1 exit status
After 2 hours of googling and experimenting I still don't see a reason for this behaviour, so I file this as
a bug now. Suggestions are welcome.