Link Error :"_MALLOC", referenced from:

Discussion in 'Mac Programming' started by mkristain, Aug 22, 2011.

  1. mkristain macrumors regular

    Aug 18, 2011
    i am LINK_WITH_STANDARD_LIBRARIES but still this error comes.

    how to resolve this.
  2. gnasher729 macrumors P6


    Nov 25, 2005
    There is a Standard C library function "malloc", but none called "MALLOC".

    There are two possible ways to fix the problem:

    Either you called MALLOC when you wanted to call malloc. Change the call.
    Or you wanted to call MALLOC. Implement a function named MALLOC.
  3. mkristain thread starter macrumors regular

    Aug 18, 2011

Share This Page