I am trying to create a simple c++ project in Visual studio 2015
Peakdetector.h
 #ifndef PEAKDETECTOR_H
 #define PEAKDETECTOR_H
 //-------------------------------------------------------
 #ifdef DLL_BUILD_SETUP
    #ifdef Q_OS_LINUX
        #define DLLSPEC __attribute__((visibility("default")))
  #else
      #define DLLSPEC __declspec(dllexport)
  #endif
 #else
   #ifdef Q_OS_LINUX
      #define DLLSPEC
  #else
      #define DLLSPEC __declspec(dllimport)
   #endif
 #endif
  namespace vpg {
   #ifndef VPG_BUILD_FROM_SOURCE
   class DLLSPEC PeakDetector
  #else
   class PeakDetector
  #endif
       private:
          int __seek(int d) const;
          double __getDuration(int start, int stop);
   }
   inline int PeakDetector::__seek(int d) const
   {
     return ((m_intervalslength + (d % m_intervalslength)) % m_intervalslength);
   }
#endif
PeakDetector.cpp
#include "stdafx.h"
#include "peakdetector.h"
   namespace vpg {
     void PeakDetector::__updateInterval(double _duration)
     {
         //other stuff
     }
}
When I try to run this application i get error
LNK2019 unresolved external symbol "__declspec(dllimport) private: int __cdecl vpg::PeakDetector::__seek(int)const " (__imp_?__seek@PeakDetector@vpg@@AEBAHH@Z) referenced in function "private: void __cdecl vpg::PeakDetector::__updateInterval(double)" (?__updateInterval@PeakDetector@vpg@@AEAAXN@Z) MyCustomProject
I am new to this and cannot figure out why am I having this error.I have just copy pasted this code from an example.Please let me know if I am missing any code. Also I dont have any .lib files.
 
    