Clang++ stdlib/cstdlib.h workaround

Antonio Olivares olivares14031 at gmail.com
Wed Jul 4 17:26:14 UTC 2018


On Wednesday, July 4, 2018, Erich Dollansky <freebsd.ed.lists at sumeritec.com>
wrote:
> Hi,
>
> On Wed, 4 Jul 2018 07:30:54 -0500
> Antonio Olivares <olivares14031 at gmail.com> wrote:
>
>> On Tuesday, July 3, 2018, Shane Ambler <FreeBSD at shaneware.biz> wrote:
>> > On 04/07/2018 04:08, Antonio Olivares wrote:
>> >> Dear kind folks,
>> >>
>> Thanks for your input.  For the moment I have removed the header file
>>
>> #include <stdlib.c>
>
> is this just a typing error or is this the cause?
>
> Erich
>

Typing error!
It should be
``#include <stdlib.h>''
Or
``#include <cstdlib.h>''
And some variations omit the ".h" part.  I had a cout statement in two
lines and I always got error message.  Once I joined the statements to a
single line the program compiled successfully.

Best Regards,


Antonio


More information about the freebsd-questions mailing list