C ++: Warnung inkonsistente DLL -VerknüpfungC++

Programme in C++. Entwicklerforum
Anonymous
 C ++: Warnung inkonsistente DLL -Verknüpfung

Post by Anonymous »

Ich habe ein Problem mit Visual Studio (in C ++) < /p>
Ich habe eine Warnung erhalten und ich weiß nicht, warum ich nie 2 mal die gleiche Variable nenne. < /p>

Code: Select all

function: inconsistent dll linkage

Warnliste: (in Französisch)

iT Micosoft: MySoft: MySoft: Compiler -Compiler -Lesen (Lesen Sie. Das Beispiel ist nicht wie meine. /> Es ist meine "payrespectdll.h" < /p>

Code: Select all

#pragma once

#ifdef PAYRESPECTDLL_EXPORTS
#define PAYRESPECTDLL_API __declspec(dllexport)
#else
#define PAYRESPECTDLL_API __declspec(dllimport)
#endif

#include 
#include 
#include 

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();
}
}
< /code>
 payRespectdll.cpp:
// PayRespectDLL.cpp :
//

#include "stdafx.h"
#include "PayRespectDLL.h"
#include 
#include 
#include 
#include 

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;
}
}
Danke!

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post