I have an issue with Visual studio (in C++)
I got a warning and I don't know why because I never call 2 time the same variable.
function: inconsistent dll linkage
I read on microsoft: Compiler Warning (level 1) C4273 but I don't really know if it's my problem because the example is not like mine.
I read also About inconsistent dll linkage (StackOverflow and it tell me that because I use MFC in dll but I didn't check the header MFC.
it's my "PayRespectdll.h"
#pragma once
#ifdef PAYRESPECTDLL_EXPORTS
#define PAYRESPECTDLL_API __declspec(dllexport)
#else
#define PAYRESPECTDLL_API __declspec(dllimport)
#endif
#include <ctime>
#include <time.h>
#include <string>
namespace PayRespectDLL
{
class PayRespect
{
private:
static struct std::tm when;
public:
static PAYRESPECTDLL_API bool is_setup();
static PAYRESPECTDLL_API void setup(std::string date);
static PAYRESPECTDLL_API bool is_possible();
}
}
PayRespectDLL.cpp:
// PayRespectDLL.cpp :
//
#include "stdafx.h"
#include "PayRespectDLL.h"
#include <stdexcept>
#include <time.h>
#include <string>
#include <stdlib.h>
using namespace std;
namespace PayRespectdll
{
bool PayRespect::is_setup()
{
return false;//already_setup;
}
// setup attempt String: hh:mm:ss.
void PayRespect::setup(string date)
{
return;
}
bool PayRespect::is_possible()
{
return true;
}
}
thank you!