User forums > Using Code::Blocks

ltoa() and strrev() functions in stdlib.h of Code::Blocks

<< < (2/2)

Jenna:

--- Quote from: tog on January 04, 2011, 12:06:55 pm ---I have C::B 10.05 version. It has many compilers: GNU GCC compiler, Visual C++ 2005/2008,Borland C++ compiler and many others....I downloaded all of them with C::B.
All compilers are into : Global compiler settings->Selected compiler. Functions ltoa() and strrev() are unstandard ! Before I compiled programms normally untill I tried to use ltoa(), strrev().

--- End quote ---

You should not ask questions about software in forums, if you can not accept the answer or if you believe you know it better than a longtime user and developer of the software you use.

tog:
I just ask you...

rickg22:
Okay, just not to leave the question open...

The C::B distribution you downloaded is not bundled with a compiler. It allows you to choose from any compilers you might have installed. In the download section, there's a package which does included a bundled mingw compiler. Be reminded that C::B is not like Visual Basic which has everything installed and ready-to-go. You should at least download GCC and try a hello world C++ example with notepad to know how to use a compiler and linker. Then you can configure C::B and enjoy the IDE. See ya.

Mountaingod:
For what it's worth,

1. http://www.cplusplus.com/reference/ doesn't list either function, but http://linux.die.net/man describes both (under stdlib.h and string.h respectively). This suggests they might be somewhat platform-specific;

2. MinGW is a port of Linux's GCC. As a result of this, my copy of MinGW does in fact provide those functions. I don't know about other compilers however, especially Windows-only ones such as MSVC.

Navigation

[0] Message Index

[*] Previous page

Go to full version