User forums > Help
C Program compiles without headers?
beqroson:
I cannot tell you for sure, but my guess is that you use a flag for nostdlib, that will make it not link to std lib and (I guess) that would create an error instead. Otherwise it will link to std lib by default. I usually do not program in C, so I am only guessing to what the reason is. But I cannot see why the behavior should be wrong, in particular. Probably just related to some flag and std lib.
crisdorya:
This is interesting...
I will talk to my professor and ask him about this, it is quite weird indeed.
Thank you for the responses!
beqroson:
Sure. Next time, please note that this forum is not for such questions about general programming.
crisdorya:
I thought it was a setting in C::B that did this "unwanted magic"... Anyway thanks for the given help.
BlueHazzard:
this is really OT here, but this slide-show will explain a bit what is happening here: http://de.slideshare.net/olvemaudal/deep-c (the first 20 slides)
probably in your lap you are using an c++ compiler (the file ending is cpp and not c)
Navigation
[0] Message Index
[*] Previous page
Go to full version