Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Newbie trying to compile code

  • 02-11-2001 9:48am
    #1
    Registered Users, Registered Users 2 Posts: 80 ✭✭


    Righty. I've had a small amount of experience with RedHat Linux. But I'm now running MacOS X,(which as fas as I am aware is effectivly BSD). I can compile code, but I can't run the output file (a.out). I've tried chmod, but no success.

    It's simple C, just a small program to do a quick calculation.

    Apple's IDE is overkill, and daunting.

    Do I need to link it? How?

    Thanks in advance
    Barry
    (I know this probobly exists on an FAQ somewhere but I've not found a solution)


Comments

  • Registered Users, Registered Users 2 Posts: 16,414 ✭✭✭✭Trojan


    Need more info, can you show us output?

    A quick Google didn't help much, but one long shot is to try "ld a.out" or whatever.

    Al.


  • Registered Users, Registered Users 2 Posts: 80 ✭✭limey_tank


    Not much output to look at. No warnings, no errors.

    The code works fine (it's ANSI, with no silly bells and whistles) when compiled using Borland on my PC, but won't execute after compilation on the Mac.

    Barry
    (a man, not a toy)


  • Registered Users, Registered Users 2 Posts: 16,414 ✭✭✭✭Trojan


    The only thing for it is to post some code snippets or the whole thing. Maybe it's something obvious.

    Does MacOSX have the BSD libs?

    Al.


  • Registered Users, Registered Users 2 Posts: 80 ✭✭limey_tank


    I've since got Code Warrior. It's uses it's own pseudo-terminal, and has produced a lovely altivec optimised executable with minimum hassle.

    Thanks, and consider this thread redundant.

    Barry
    (now leading a slightly easier life)
    (this is not an ad for either Metroworks or Apple)
    :-)


Advertisement