• 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
GCC 3.3 and signal 5 (SIGTRAP).
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC 3.3 and signal 5 (SIGTRAP).


  • Subject: GCC 3.3 and signal 5 (SIGTRAP).
  • From: Isaac Rivera <email@hidden>
  • Date: Sat, 5 Jun 2004 09:40:12 -0400

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.


  • Follow-Ups:
    • Re: GCC 3.3 and signal 5 (SIGTRAP).
      • From: Chris Espinosa <email@hidden>
    • RE: GCC 3.3 and signal 5 (SIGTRAP).
      • From: "Bill Lowrey" <email@hidden>
References: 
 >exited due to signal 5 (SIGTRAP). (From: Isaac Rivera <email@hidden>)

  • Prev by Date: Xcode Error message
  • Next by Date: Re: Framework header conversion advice
  • Previous by thread: exited due to signal 5 (SIGTRAP).
  • Next by thread: RE: GCC 3.3 and signal 5 (SIGTRAP).
  • Index(es):
    • Date
    • Thread