My understanding of code blocks is that it uses gcc. So I am curious why gcc allows you to have a function called itoa, but code blocks does not let you have a function called itoa. Does anyone know?

Recommended Answers

Idea. The source for itoa is on the web so why not make a function from the source?

Jump to Post

All 3 Replies

Idea. The source for itoa is on the web so why not make a function from the source?

Code::Blocks uses MinGW by default, which is a port of GCC. That said, itoa should be available, if I recall correctly. Normally I'd ask what your switches are and to post some code which fails to find itoa, but a standard alternative is snprintf (or sprintf if you're not running C99 or later).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.