• 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: incompatible implicit declaration of built-in function 'malloc'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incompatible implicit declaration of built-in function 'malloc'


  • Subject: Re: incompatible implicit declaration of built-in function 'malloc'
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 25 Aug 2006 11:58:51 -0700


On Aug 25, 2006, at 11:27 AM, Daniel R. Killoran,Ph.D. wrote:

I get the following perplexing warning:


.../SeriatedSubs.c:159: warning: incompatible implicit declaration of built-in function 'malloc'


on the perfectly ordinary-appearing line:


tPtr = tmpStr = (char *)malloc((size_t)leng/2+1);


I can't find any hint in the documentation (or the archives) of why I should get it?!


This is what you get in C if you use a function without #including its header, and it doesn't follow the patternĀ  int foo(void).

Are you sure your source file has an #include <stdlib.h> ?

Chris

 _______________________________________________
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

References: 
 >incompatible implicit declaration of built-in function 'malloc' (From: "Daniel R. Killoran,Ph.D." <email@hidden>)

  • Prev by Date: incompatible implicit declaration of built-in function 'malloc'
  • Next by Date: Re: Automate build numbers
  • Previous by thread: incompatible implicit declaration of built-in function 'malloc'
  • Next by thread: Re: incompatible implicit declaration of built-in function 'malloc'
  • Index(es):
    • Date
    • Thread