Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jonouv on October 12, 2021, 05:40:54 pm

Title: atoi missing codeblocks 20.3 new install
Post by: jonouv on October 12, 2021, 05:40:54 pm
Hi,
I am learning c for uni and codeblocks has been fine until I needed to use atoi
stdlib.h is included but I cant use that command or a bunch of others.
ticked c++11 iso c++ -std=c++11 in flags using ming64 fresh install from the site.
Compilers is gnu gcc that was installed with the latest 20.3 install.
I understand this was an issue previously by what I read and thought the latest version might of solved it.

Have i missed something ?
many thanks for any help
Title: Re: atoi missing codeblocks 20.3 new install
Post by: Miguel Gimenez on October 12, 2021, 07:10:47 pm
Code::Blocks is an IDE, your problem is compiler-related so it is OT here.

Anyway, how have you included stdlib.h,
Code
#include <stdlib.h>
or
Code
#include <cstdlib>
?

Can you attach (in code tags) the error message?
Title: Re: atoi missing codeblocks 20.3 new install
Post by: klinkenbecker on October 16, 2021, 02:14:01 am
An exceptionally valuable reference which you should bookmark; https://pubs.opengroup.org/onlinepubs/007904975/idx/index.html

atoi(): https://pubs.opengroup.org/onlinepubs/007904975/functions/atoi.html