i want to use Asio standalone library for networking in my c++ project, but i’m having issues with my compiler/linker (MinGW). I put the "include" folder in the "asio-1.18.1" folder in the "include" folder of MinGW and renamed it to Asio, but it doesn’t work. I also tried to use the "LIBRARY_PATH" environement variable, but ..
I’ve been trying to compile my code with CMake using the "MSYS Makefiles" generator. I wrote the following command: cmake -S . -B build/ -G "MSYS Makefiles But I was presented with the following error: CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably ..
I have two cpp files: main.cpp using my_math.cpp. I don’t want to invoke two commands below g++ -E my_math.cpp > my_math.ii g++ -E main.cpp > main.ii How to get the same result but with just one invocation of g++ -E? Note 1 Don’t suggest me to use g++ main.cpp my_math.cpp -save-temps -o output.exe that actually ..
I tried running a c++ program using dev-c++ and MinGW compiler. I had include stdlib and conio header files in the source code, and even though these header files are present in the include folder of MinGW, the error message above is shown. How do i fix this Source: Windows Que..
When I add winsock2 to my MinGW-w64 C/C++ project, it then gets make error: undefined reference to `InitializeConditionVariable’. NOTE: InitializeConditionVariable built and ran ok prior to adding Winsock. main.c … #undef UNICODE #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <signal.h> #include "infrastructure.h" #include "common.h" #include ..
I want to change the standard language in c++ permanently so I no longer need to type g++ -std=c++17 <filename> repeatedly to change the language version which was previously c++14, and that also affects vscode which I use because the compiler can’t track the language rules of version c++17, it affects the editor and displays ..
My non-socket MinGW-w64 project works great on Windows 10. Now I need to add socket support ASAP so that it can communicate with my iOS device. This is just a one-off, not a "product." Source: Windows..
Suddenly my vs code and code block started showing errors In VS Code, it highlights the header file and says "#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit" and code block says "A debugging check in this application has failed" I tried reinstalling both MinGW and ide, but still, ..
I am currently using scanf() but it doesn’t have the features of readline() (like custom autocomplete and proper history). The history is the main issue as I cannot load or save history like in readline() and I had to remove this feature from the Windows port of my application. I dislike this decision because I ..
Recently I set up SDL2/mingw on Windows, loosely following this tutorial (everything minus sublime setup). Compiling with G++ works perfectly, but when I run the application (hello world test), it returns The application was unable to start correctly (0xc0000279) in a pop up. From what I found through google, this error typically means important files ..