help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help interpretting a g++ error?


From: Paul Pluzhnikov
Subject: Re: Help interpretting a g++ error?
Date: Wed, 20 Jul 2005 10:14:57 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Dan Stromberg <strombrg@dcs.nac.uci.edu> writes:

> I keep getting this weird "malloc not declared" errors when cstdlib is
> included.

Post a minimal example demonstrating the problem.
The following:

#include <cstdlib>
int main()
{
    return malloc(10) ? 0 : 1;
}

Compiles fine on AIX 5.1 with g++-3.3:

$ /usr/local/gcc-3.3/bin/g++ junk.cpp  && echo ok
ok

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]