RE: GCC 3.3 and signal 5 (SIGTRAP).
RE: GCC 3.3 and signal 5 (SIGTRAP).
- Subject: RE: GCC 3.3 and signal 5 (SIGTRAP).
- From: "Bill Lowrey" <email@hidden>
- Date: Sat, 5 Jun 2004 10:08:36 -0500
- Organization: istation.com
Make sure you have ZeroLink turned off. If it's turned on, the app will only
run from the debugger, I believe.
-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of Isaac Rivera
Sent: Saturday, June 05, 2004 8:40 AM
To: Isaac Rivera
Cc: email@hidden
Subject: GCC 3.3 and signal 5 (SIGTRAP).
I wrote the message below yesterday.
Today I am trying to follow the C Language tutorial posted at
http://www.cocoadevcentral.com/ and I get a similar error when trying
to call members defined in a simple header file as follows in a file
named "math_functions.h":
int sum (int value1, int value2);
float average (float value1, float value2, float value3);
Now trying to use them in a C file like this:
#include <stdio.h>
#include "math_functions.h"
int main ()
{
int theSum = sum (8, 12);
float theAverage = average (16.9, 7.86, 3.4);
printf ("the sum is: %i ", theSum);
printf ("and the average is: %f \n", theAverage);
printf ("average casted to an int is: %i \n", (int)theAverage);
return 0;
}
I get an error:
ld: Undefined symbols:
_average
_sum
I am compiling from the command line.
Is this error related to the XCode error that I posted yesterday, where
I cannot call @interface defined functions from the main function
without "exiting with signal 5 (SIGTRAP)." message (read below)?
Anyone's help would be greatly appreciated.
Isaac Rivera
On Jun 4, 2004, at 3:37 PM, Isaac Rivera wrote:
> I have tried to follow this thread in the Archives, but no one seems
> to post a specific solution for it.
>
> I am trying to learn Objective-C in XCode 1.2, but coding a simple
> excercise that used to work in XCode 1.0 it wont run anymore!!!
>
> I have uninstalled the dev tools and reinstalled tools 1.2 from
> scratch. Oh, and no, I don't have the infamous
>
> "/System/Library/PrivateFrameworks/ZeroLink.framework/Versions/A/
> Resources/libobjc.A.dylib"
>
> file in there. It's just not there, so I must've never had a preview
> version or it got deleted with the uninstall. In any case, can someone
> give me a "For Dummies" version of the solution for this dilema?
>
> Thanks.
>
> Isaac Rivera
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.