-
namespace warnings
When I compile and link two files that use the std namespace, I get a ton of warnings from the compiler about duplicate symbols.
The reason for the warnings is obvious so how can I link two files that use the same namespace without generating a warning ?
-
I dont think namespace is your problem. If you are using multiple header files, e.g., #include "myHeader1.h" and #include "myHeader2.h", and have not conditionaly included the commands, e.g., #ifndef MYHEADER1_H and #define MYHEADER1_H, . . . commands . . ., and #endif, you will get errors.
Otherwise, to see some code would help me see your problem.
Ted
-
namespace warnings
okay.
i'm using the new style headers under the std namespace.
so how do i conditionally include them like the old style headers:
#ifndef _H
#define MYHEADER_H
#endif
-
You must post some code. Start by showing the names of the header files you wish to include.