Author Topic: atoi missing codeblocks 20.3 new install  (Read 7650 times)

Offline jonouv

  • Single posting newcomer
  • *
  • Posts: 2
atoi missing codeblocks 20.3 new install
« 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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: atoi missing codeblocks 20.3 new install
« Reply #1 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?

Offline klinkenbecker

  • Single posting newcomer
  • *
  • Posts: 3
Re: atoi missing codeblocks 20.3 new install
« Reply #2 on: October 16, 2021, 02:14:01 am »