Original Post
Hello, community! I don't understand why the following won't work. I have a global namespace SkepWorks. Everything that is about my engine is in this namespace. In one of my modules, I have a namespace SkepWorks::Asm, which is where all my assembly routines are. But for some reason, I keep getting duplicate functions errors from a module that is only including this module. In other words: I get twelve errors like this one: 1>SWMMath.obj : error LNK2005: "float __cdecl SkepWorks::Asm::asm_arccos(float)" (?asm_arccos@Asm@SkepWorks@@YAMM@Z) already defined in SWMAngle.obj I believe that there is a circular dependency going on here, but what is the easiest way to fix it. Thanks for any assistance, exorcist_bob
//SWMAngle.cpp
#include "SWMMath.h"
#include "SWMAngle.h"
//SWMMath.h
#include "SWMAngle.h"
namespace SkepWorks
{
namespace Asm
{
//functions
}
}