Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1429
Closed
Open
Created Oct 10, 2006 by Kai Trojahner@ktrGuest

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.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking