Category : visual-studio

I am trying to use a C++ object in Python that has in argument a cv::Mat. Here is my code : //simplelib.h #ifdef SIMPLELIB_EXPORTS #define SIMPLELIB_API __declspec(dllexport) #else #define SIMPLELIB_API __declspec(dllimport) #endif #ifdef _DEBUG #undef _DEBUG #include <Python.h> #include <boost/python.hpp> class simplelib { private: cv::Mat input; public: /*Constructor for the simplelib class*/ SIMPLELIB_API simplelib(cv::Mat input); ..

Read more

I am trying to integrate rabbitmq into one of the modules of my solution in order to switch from mailslots to rabbitmq. The problem is that during the fectcontent, the module "breaks" the links of the other modules. The errors generated are "unresolved external symbols". ########################## # CODE CMAKELISTS ########################## file(GLOB sources "src/*.cpp" "src/*.c") file(GLOB ..

Read more

A publication company that markets both book and audiocassets versions of its works. create a class called publication that stores the title (a string) and price (type float) of publication. This class includes getdata() and showdata() member functions for input and output data members. This class also includes a pure virtual member function “ISOversize()”. From ..

Read more

I’m coding a simple project with Java Script using WSL2. I’ve started learning programming just three months ago and I still don’t know exactly how to manage my system files from a terminal, so when VS Code showed me the "This workspace is on the Windows file system (/mnt/). For the best performance, we recommend ..

Read more

I use Visual Studio 2019. I writing two test project: exe and dll. My dll include noexported class and exported function: #pragma once #include <vector> #ifdef DLL_EXPORT #define DLL __declspec(dllexport) #else #define DLL __declspec(dllimport) #endif struct dll { public: std::vector<int> a; std::vector<int> b; std::vector<int> c; int d; }; extern "C" DLL dll * _data1(); And ..

Read more