I have my header like:
#include iostream & map
namespace dummy {
const char* some_xxx_name(const char* name);
}
#include myfile.cpp (the following cpp file stated below)
I have my cpp file like:
#include "myfile.h" (the file stated above)
#include <sstream>
#include <cassert>
inline const char* dummy::some_xxx_name(const char* name) {
........
}
They are working fine under my linux environment with makefile, now I am adopting in visual studio environment and get following error:
error C2084: function 'const char *dummy::some_xxx_name(const char *)' already has a body ....(point to the line in the header)
I know the file structure is not good at all for including cpp at header and including header at cpp(or maybe).
want to ask if there is any chance to make it work without updating the code? Not familiary how shall I go forward under windows visual studio environment.