Previous in Forum: CoDeSys and CANbus   Next in Forum: More viruses.
Close
Close
Close
2 comments
Rate Comments: Nested
Participant

Join Date: Sep 2009
Location: Texas
Posts: 1

How to Execute Assembler Object Files with Mac x11

09/25/2009 9:30 AM

I am writing some programs in C. I was able to compile but have been unsuccessful in executing my object file from the command line. I simply get no output. Any suggestions? B.J.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#1

Re: How to Execute Assembler Object Files with Mac x11

09/25/2009 5:15 PM

Compilers and linkers are generally poorly documented and user hostile.
Maybe it's just me, but I usually start with a working example from the vendor and work from there.
Maybe just try to implement a simple function which is alread writen?
Getting any new system to actually work usually takes a week and endless calls to the 'not-much-help desk'
I sympathise...but that's all I've got.
Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Guru

Join Date: Sep 2007
Location: Wrong end of the yellow brick road in Oz
Posts: 930
Good Answers: 15
#2

Re: How to Execute Assembler Object Files with Mac x11

09/27/2009 5:11 AM

What are you running as your compiler? and what are the command line switches your using?

I'm guessing your running OSX? Mac X11? sounds like Linux or Xorg?

then I'd guess your running a GCC compiler?

have you read the man page for that compiler? and have read some of the make files for ideas on how others have compiled exec files from source?

Or are you compiling them and just cannot exec from the commandline? have you tried something like

chmod +x <program name>

or exec the file under a bash/sh shell as sh <program name> ??

__________________
Qn, Whats the differance between a Snake and a Onion? Ans, No one cries when you chop up a Snake
Register to Reply
Register to Reply 2 comments

Previous in Forum: CoDeSys and CANbus   Next in Forum: More viruses.

Advertisement