• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bus Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bus Error


  • Subject: Re: Bus Error
  • From: Markus Hitter <email@hidden>
  • Date: Wed, 15 Jun 2005 12:08:47 +0200


Am 15.06.2005 um 08:46 schrieb Federico:


Hi, I'm developing an application for my thesis, beginning now my
XCode experience.
I'm using Mac OS X 10.3.7 with XCode 1.5.
I compile my GNU Make application


So, you're using a traditional Makefile? What happens if you compile and run your code in Terminal? Which compiler do you use on both systems ("man gcc_select") ?



-- I created it using the AutoTools with Suse Linux --


Should be fine as long as you add enough tests and code support (#ifdef's) to honor all relevant differences between SuSE Linux and Mac OS X.



and when I run it the first error is a BUS ERROR.


gdb, the debugger is your friend. From within Xcode, it's launched if you click the yellow spraycan.



I understood that the problem is likely it does not read argc and argv
from the command line.


You should fix your app. It's bad coding practice not to check the external prerequisites (CLI parameters, in this case) you assume. A bus error in case of a missing parameter is just the logical result of such practice.



Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Bus Error
      • From: Federico <email@hidden>
References: 
 >Bus Error (From: Federico <email@hidden>)

  • Prev by Date: Re: Command-K not compiling
  • Next by Date: error: parse error before "Game"
  • Previous by thread: Bus Error
  • Next by thread: Re: Bus Error
  • Index(es):
    • Date
    • Thread