Tuesday, 15 September 2015

c - gcc doesn't give compile error when there is no foo() function -



c - gcc doesn't give compile error when there is no foo() function -

gcc doesn't give error 'undefined reference foo()' when foo() not defined , implemented.

gcc gives warning 'implicit declaration of function foo()'

when execute program, meet crash when foo() called.

i gcc give error.

is there gcc alternative except '-werror-implicit-function-declaration'?

or problem?

c gcc compilation

No comments:

Post a Comment