Thread: cmalloc

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    94

    cmalloc

    Hi guys!

    I have cmalloc as directive

    #include <cmalloc>

    but I cannot compile-it from bash it says:
    error: cmalloc: No such file or directory

    can you tell me how to compile it with:

    g++

    Thank you!!!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    No such header file exists.

    It might have done in some obsolete compiler, but for g++, malloc will be in
    #include <cstdlib>
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed