Category : cygwin

When calling SDL_CreateWindow("Hello World!", 100, 100, 640, 480, SDL_WINDOW_SHOWN); the window is not created and calling SDL_GetError returns an error that reads exactly as shown in the title. I had set my SDL_VIDEODRIVER to ‘windows’ at one point, but changing this, rebuilding my application, and attempting to run again did not change the error. I ..

Read more

I am running this in windows, compiled using cygwin and mingw. Compile Command: g++ sdl.cpp -I"include" -L"lib" -lSDL2main -lSDL2 -lSDL2_image -o test.exe Code: #include <SDL2/SDL.h> int main(int argc, char *argv[]) { if (SDL_Init(SDL_INIT_VIDEO) != 0) { printf("error initializing SDL: %sn", SDL_GetError()); } SDL_Window*win = SDL_CreateWindow("Test",SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,1000, 1000, 0); while (1); return 0; } Source: Windows..

Read more

when trying to compile this code using gcc in cygwin I get this error. Code: #include <iostream> using namespace std; int main() { cout << "success"; return(0); } Error: $ gcc test.cpp /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccVDXy1o.o:test.cpp:(.text+0x22): undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)’ /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccVDXy1o.o:test.cpp:(.text+0x59): undefined reference to std::ios_base::Init::Init()’ /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccVDXy1o.o:test.cpp:(.rdata$.refptr._ZNSt8ios_base4InitD1Ev[.refptr._ZNSt8ios_base4InitD1Ev]+0x0): ..

Read more

I have download the source of Net-SNMP v5.9.1 from SourceForge and ran the ./configure (which ran successfully) followed by make, which gives an error: In file included from /usr/include/w32api/iprtrmib.h:12, from /usr/include/w32api/iphlpapi.h:15, from ./mibgroup/mibII/var_route.h:14, from ./mibgroup/mibII/ip.h:29, from ../agent/mibgroup/mib_module_includes.h:25, from agent_read_config.c:113: /usr/include/w32api/mprapi.h:240:5: error: unknown type name ‘IN6_ADDR’ 240 | IN6_ADDR ipv6addrDns; | ^~~~~~~~ /usr/include/w32api/mprapi.h:241:5: error: unknown type ..

Read more

After identifying the previous missing module which is the numpy module. It does not recognize where is the winreg module. Using CPU_MODE_ONLY to install py-faster-rcnn in Cygwin. ERROR LOG: $ make python setup.py build_ext –inplace running build_ext Traceback (most recent call last): File "/cygdrive/c/py-faster-rcnn/lib/setup.py", line 231, in setup( File "/usr/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() ..

Read more

Platform: Windows. My CMakeLists.txt cmake_minimum_required(VERSION 3.20) set(CMAKE_CXX_STANDARD 20) project(nwb) add_executable(${PROJECT_NAME} Main.cpp) target_include_directories( ${PROJECT_NAME} PUBLIC ../Dependencies/opencv/build/include ) target_link_directories( ${PROJECT_NAME} PUBLIC ../Dependencies/opencv/build/x64/vc15/bin ${PROJECT_NAME} PUBLIC ../Dependencies/opencv/build/x64/vc15/lib ) if (CMAKE_BUILD_TYPE STREQUAL "Debug") target_link_libraries( ${PROJECT_NAME} opencv_world454d ) else() target_link_libraries( ${PROJECT_NAME} opencv_world454 ) endif() If I set vs2022(v143) compiler(I use CLion) everything compiles, links and runs, but if I set compiler ..

Read more