I can't rememer ever having seen LNK2022 unless some managed code is involved. And this snippet from the OP strengthens that impression:



c_settings.cpp
===========
#include "stdafx.h"...