Date: Tue, 3 Jul 2018 13:38:31 -0500 From: Antonio Olivares <olivares14031@gmail.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Clang++ stdlib/cstdlib.h workaround Message-ID: <CAJ5UdcP-Hpa%2BYqAkwkrv4ec_mV=CaTzDo%2BkCAADd-JKb25OdeQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Dear kind folks, I have a cpp file that used stdlib.h and it compiled and ran successfully. I am trying it out with clang and it returns errors that it cannot find stdlib.h, I remove the stdlib.h include statement and it still complains. I made a copy of the c++ file and it compiles and runs correctly, but I removed some stuff " --- " and only output the numbers. How do I deal with stdlib.h requirements? The program finds numbers that are triangular and square. It fails for numbers that are bigger than 2147483647. Thanks for ideas/suggestions/advice provided. Best Regards, Antonio
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcP-Hpa%2BYqAkwkrv4ec_mV=CaTzDo%2BkCAADd-JKb25OdeQ>