Quote Originally Posted by nikosft View Post
Every time I include inet.h the redefinition error occurs during the linkage phase. Again I can not modify inet.h
Why not? Who created inet.h? Whoever did create that file, did a lousy job of it.

You have a few options.

1) Change inet.h, or

2) just include inet.h (and use it) in only one module, or

3) If you must use it in another module, you have to enter the function declaration within the CPP file "by hand", and not do it using the include file:
Code:
// Some file.cpp
bool method3();

void func()
{
   method3();
}
Assume the above is the entire file. You declare the method3() function by placing its prototype directly in the source file. Now there will be no linker errors, since the actual definition of the function is still defined in one place.

Regards,

Paul McKenzie