PDA

View Full Version : Project Builder errors


Muffinking
2002.05.13, 03:35 PM
this is the error I got after running my code:

Clever Carbon.app has exited due to signal 10 (SIGBUS).

I spent a quite a long time getting all the errors out of my code so that it would run with carbon compatible function calls..

any Idea what that error means? ( I am really new to Project Builder)

and one last thing, how do I compile my code into a library? I can do this in Codewarrior easily but am stumped on how to do it in PB.

any help would be great!

Feanor
2002.05.13, 04:43 PM
Project Builder lets you make frameworks, which is the preferred format for shared libraries on Mac OS X. Apple has docs about it, or grab something like the Quesa source (www.quesa.org), which has a PB project you can examine. I myself don't know enough to give you a detailed answer yet.

Your error means you are accessing memory which you don't have permission to touch. Likely causes are uninitialized pointers or an object that wasn't retained properly.

Brent

OneSadCookie
2002.05.13, 05:01 PM
Running off the end of an array will also usually cause a bus error.

If you debug your program, you should be able to find the line that's causing the problem.

Project builder allows you to build frameworks, static libraries, and dynamic libraries (not recommended). Some of these options are available in the project templates dialog box, others are only available by creating an empty project and adding a new target of the appropriate type.

There's a good tutorial on CocoaDevCentral about making a framework to be embedded in an application.