Link Error :"_MALLOC", referenced from:

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

  1. mkristain macrumors regular

    Joined:
    Aug 18, 2011
    #1
    i am LINK_WITH_STANDARD_LIBRARIES but still this error comes.

    how to resolve this.
     
  2. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    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

    Joined:
    Aug 18, 2011

Share This Page