I would like to know where is better to put the
#ifdef __cplusplus
extern "C" {
#endif
in a C header file.
At the beginning or after all the other includes. why ?
The best place to set up your router is in a central, unobstructed location to ensure your home Wi-Fi network has a strong signal anywhere in your house. Moving your router even just a few feet might save you from endless connection problems and allow you to get the most out of your internet connection.
There are no strict rules on this, but note the following.
Just know that the idea behind extern "C" is that it makes the compiler generate C friendly linkage. Otherwise, code compiled with a C++ compiler looks for mangled names to link against in archives compiled with a C compiler, and can't find them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With