Код: Выделить всё
#ifdef DLL_MODE
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif
Код: Выделить всё
class DLL_API Test
{
public:
void print();
};
Код: Выделить всё
#include "../LibTest/Test.hpp"
void Test::print()
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78487113/errors-with-declspec-in-c-20[/url]
Мобильная версия