C++ extern keyword on functions. Why no just include the header file?

1) It may not have a header file. But yes, in general, for large projects, you should have a header file if multiple translation units are going to use that function (don’t repeat yourself).

2) The linker searches through all the object files and libraries it was told about to find functions and other symbols.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)