Category : visual-studio

Asking so I can answer this myself, lost a day to it and want to save other folks the trouble. Setup: Windows (seen on both Windows 10 and Server 2019) Visual Studio (seen on both Visual Studio 2017 and Visual Studio 2019) cmake 3.19.0-rc1 (latest download as of this post) Following instructions at https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/setup.html for ..

Read more

Using VS2017, I made a project from the auto-generated .cpp/.h files generated by this line: protoc -I=$SRC_DIR –cpp_out=dllexport_decl=MY_EXPORT_MACRO:$DST_DIR $SRC_DIRgameinformation.proto I need to compile these files to a .dll, hence the extra option in –cpp_out. I the ndefined the macro as so in the .h file: #if BUILD_GAMEINFORMATION #define MY_EXPORT_MACRO __declspec( dllexport ) #else #pragma comment( ..

Read more

I recently downloaded pthreads-win32 and I’m trying to run some code (C++) on Visual Studio 2019. However, this is the error I get: The code execution cannot proceed because pthreadVC2.dll was not found. Reinstalling the program may fix this problem. I tried to copy and paste the .dll files. However, I’m not sure what I’m ..

Read more

I’m trying to get libpqxx running, but encounter some difficulties trying to build the project. I have a Windows10 64-bit, PostgreSQL 13 installed, CMake 3.18.4, downloaded the most recent libpqxx source, just updated my whole Visual Studio 17 today too. Trying to run it in the shell gave me this: C:UsersxxxDocumentsProgrammierenC++Libraries>cmake -S libpqxx-master -B build ..

Read more