Author Topic: MacOS and the symbol LF  (Read 738 times)

Offline RogerTunnicliffe

  • Jr. Member
  • *
  • Posts: 4
MacOS and the symbol LF
« on: January 06, 2018, 02:41:00 AM »
Not sure if anyone here can help but there is so little on the net regarding osx assembler.

I have been developing my own language, originally on Linux and then ported to Windows. I am now doing the OSX port and have come across a funny little thing. I have previously defined a global symbol LF. After assembling and try to link using "ld" I get the error (ld:symbols not found for inferred architecture X86_64). If I change the symbol to lf or _LF or aLF everything is fine.

Does anyone know what is special in OSX about the symbol LF. (I can easily change it but would prefer not to so as to keep Linux/Windows/Apple as similar as possible without going back and changing the Linux/Windows versions)