Author Topic: header files not required?  (Read 658 times)

Offline gg50

  • Single posting newcomer
  • *
  • Posts: 2
header files not required?
« on: June 11, 2020, 02:36:14 pm »
I am surprised that certain header files are not required in codeblocks (last version 20.03 or before?)

for example,
I used te gets( ) function without <stdio.h> and there is no error messages?
Can you tell me why?
Thank you

gg

Online stahta01

  • Lives here!
  • ****
  • Posts: 6997
    • My Best Post
Re: header files not required?
« Reply #1 on: June 11, 2020, 03:31:59 pm »
Code::Blocks (CB) is not a compiler!

The compiler is what causes the symptoms you are seeing.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gg50

  • Single posting newcomer
  • *
  • Posts: 2
Re: header files not required?
« Reply #2 on: June 13, 2020, 05:14:44 pm »
 I know that CB is not a compiler. I use Mingw . may be the older version of Mingw was not working the same way. I will look on mingw site.
Thank You
GG
« Last Edit: June 13, 2020, 05:52:46 pm by gg50 »

Offline windowsmaniac

  • Single posting newcomer
  • *
  • Posts: 9
Re: header files not required?
« Reply #3 on: September 15, 2020, 07:50:35 pm »
Hi,

I think it's highly probable that it it's due to the version update of mingw.