unresolved symbol trouble
<p>I have the following project files:</p>

<pre><code>//connections.cpp

#include "stdafx.h"
#include "LibraryHeaders.h"
#include "FileManager.h"

#define WSAVersion 0x202
#define GSMsgID 0x100

extern HWND Main_hWnd;

bool InitConnections ()
{
    FileManager::ConnectFile *connectfile = FileManager::ReadConnectFile(connectfile);
    SockBase GSConnection(WSAVersion, TCP, connectfile-&gt;GS_IP, connectfile-&gt;GS_Port, Main_hWnd, GSMsgID);
    if (GSConnection.Connect() != true) {return false;}
    return true;
}

//FileManager.cpp
#include "stdafx.h"
#include "FileManager.h"
#include "LibraryHeaders.h"

using namespace FileManager;

ConnectFile* ReadConnectFile(ConnectFile *ConnectStruct)
{
    FileLibrary connectfile("DMOConnection.cfg");
    if (connectfile.OpenFile(HEAP, OPEN_EXISTING, FILE_ATTRIBUTE_ARCHIVE, PAGE_READWRITE) != true) {return false;}
    ConnectStruct-&gt;GS_IP = connectfile.parser-&gt;str_GetToken((char*)connectfile.FileBuff);
    if (ConnectStruct-&gt;GS_IP == (const char*) -1) {return false;}
    ConnectStruct-&gt;GS_Port = connectfile.parser-&gt;int_GetToken((char*)connectfile.FileBuff);
    if (ConnectStruct-&gt;GS_Port == -1) {return false;}
    return ConnectStruct;
}

//FileManager.h
namespace FileManager
{
    struct ConnectFile
    {
        const char* GS_IP;
        unsigned int GS_Port;
    };

    ConnectFile* ReadConnectFile(ConnectFile*);
}
</code></pre>

<p>And when trying to build the project i got this error:</p>

<pre><code>Connections.obj : error LNK2019: unresolved external symbol "struct FileManager::ConnectFile * __cdecl FileManager::ReadConnectFile(struct FileManager::ConnectFile *)" (?ReadConnectFile@FileManager@@YAPAUConnectFile@1@PAU21@@Z) referenced in function "bool __cdecl InitConnections(void)" (?InitConnections@@YA_NXZ)
</code></pre>

<p>I dont understand why, the linker should look up and see that ive defined FileManager::ReadConnectFile on FileManager.cpp but it doesnt, any tip how to fix this?</p>
