Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

VSCode not finding libraries which were installed with MSYS2

I have the following Problem: When I open my project in VSCode only the cjson/cJson.h library is not found #include <stdio.h> #include <Winsock2.h> #include <Ws2tcpip.h> #include <...
bangingmyheadontable's user avatar
-3 votes
0 answers
27 views

"cc1.exe: sorry, unimplemented: 64-bit mode not compiled in" error

ı was try to use https://github.com/sciter-sdk/go-sciter. A go lib for making GUI with html5 in go. ı use windows 11 as operating system. ı follow the instruction for using this lib. ı install sciter....
k3sR4T's user avatar
  • 7
0 votes
0 answers
42 views

Undefined references to SDL symbols? [duplicate]

I am trying to create a project in the C89 language using the SDL2 library: #include <SDL2/SDL.h> #include <stdio.h> int main(int argc, char* argv[]) { // Initialize SDL if (...
Andrea's user avatar
  • 1
3 votes
1 answer
102 views

How can I install libraries and headers on MinGW so they will be automatically found by the compiler?

Basically, I have this C project that I decided to distribute as a static library. The library builds and gets installed (along with a header file) by a CMake file (code below). The problem is that, ...
franzageek's user avatar
1 vote
1 answer
68 views

Resolving compilation error with template specialization

I am having issues in understanding and fixing a compiler error that I see with MinGW (UCRT64) C++20, but that I don't see when I build the code with MSBuild C++11. header.h: (Only relevant code) #...
WedaPashi's user avatar
  • 3,852
1 vote
0 answers
95 views

Bazel: Why can GCC suddenly not find stdlib.h anymore?

My WORKSPACE file contains this code snippet: new_local_repository( name = "boost", build_file = "//bazel/third_party:boost.BUILD", path = "C:/msys64/mingw64/...
VincentSchaerl's user avatar
0 votes
2 answers
54 views

Linker problems trying to compile with the Chipmunk Physics Library

I am on Windows. I downloaded the latest source from here: https://github.com/slembcke/Chipmunk2D and unzipped it. I opened up the Chipmunk2D-master folder in VSCodium and used the CMake Tools ...
Introscopia's user avatar
0 votes
1 answer
64 views

C program outputs to stdout just fine on Linux, but won't output anything for Windows

I wrote a pair of programs to allow someone to send arbitrary binary files over a specific radio mode with a restricted character set, where each character is represented with some Huffman code. One ...
Expectator's user avatar
0 votes
0 answers
48 views

CodeLite not running c++ program

I configured CodeLite version 17.10 on Windows and the compiler I'm using is MinGW-w64 version GCC 14.2.0. I wrote the following code: #include <iostream> using namespace std; int main() { ...
Amir Osama's user avatar
-1 votes
0 answers
19 views

Function declaration error while trying to build MySQL Connector C++ from scratch using MinGW

I was trying to compile the source code from MySQL Connector C++ following the steps from https://dev.mysql.com/doc/connectors/en/connector-cpp-installation-source-cpp.html I cloned the source code ...
WettiestMan's user avatar
-1 votes
0 answers
49 views

Why am not I getting any output, after building and running c++ code? [duplicate]

I’m encountering an issue with CodeLite when building and running my C++ code. After building or rebuilding, the terminal pops up as expected, but it shows a blank space with no output. Additionally, ...
Emzar Chichoevi's user avatar
0 votes
0 answers
43 views

Random string occur when handling file (C++)

Trying to solve some programming exercises when I have to handle files using ifstream. As of now, the code simply opens the file, reads a string, then displays the string. The code looks like this: #...
David Pham's user avatar
1 vote
1 answer
92 views

GCC won’t work properly (a conflict with FreePascal)

I’ve installed MinGW and set the PATH, but GCC doesn’t see the included files like stdio.h. I’ve typed where gcc and found out that FreePascal comes with GCC. Apparently my PC is using GCC that comes ...
Ele's user avatar
  • 11
0 votes
1 answer
32 views

Use GCC to compile UWP DLL

I'm trying to compile a Godot 3.x application's GDNative module for UWP. Unfortunately, this fails and the result is always a native Win32 DLL that won't load in the constrained UWP environment. Is ...
user237251's user avatar
0 votes
1 answer
201 views

Can't install library with vcpkg using MinGW compiler

I'm trying to install the tbb library on Windows using the MinGW C++ compiler g++ and the vcpkg package manager. However, running .\vcpkg install tbb --triplet=x64-mingw-static --host-triplet=x64-...
Smiley1000's user avatar
-1 votes
0 answers
139 views

C++- undefined reference to `SDL_Init'. Using SDL2 with MinGW and CMake in windows [duplicate]

I'm trying to use VSCode to create a SDL2 project. But I met undefined reference error like: undefined reference to 'SDL_Init', undefined reference to 'SDL_GetError', undefined reference to 'SDL_Quit':...
Wuming's user avatar
  • 1
0 votes
2 answers
53 views

How should one include globally defined constants in a C++ library?

I will use a specific, albeit simplified, example to illustrate what I mean. Suppose we are developing a library related to complex numbers. We define two classes, 'cmplx' which represents complex ...
Edgecase's user avatar
-1 votes
0 answers
19 views

makefile with error fonts in command prompt

I encountered a font error when installing software 'make' version 3.8.1. Is there a way to fix it enter image description here This is the image displayed on my command prompt. I installed GnuWin ...
TuanAnh's user avatar
1 vote
0 answers
16 views

How to make MINGW64 pipe faster?

Is there any good reason why the third command in the listing below is so slow? And, more importantly, is there any way to make it run at comparable speed with the first two? a@DESKTOP-OCHDMBI MINGW64 ...
Anton Duzenko's user avatar
2 votes
1 answer
45 views

weak functions behave differently on gcc/Linux and MinGW/Windows

I have set up a simple example to test for weak functions. The example works as expected in Linux, but fails on Windows (compiled with MinGW): FILE f.h: #ifndef F_H #define F_H 1 extern int func(void)...
Torsten Mohr's user avatar
0 votes
1 answer
2k views

cannot download repository.txt after clicking on mingw-w64-install.exe

after downloading from sourceforge. when I click on that exe file it say's getting repository description file . after a moment it showed cannot download repository.txt. can someone solve this issue? ...
fuad sharif's user avatar
0 votes
1 answer
39 views

How to make meson find my windres binary?

I'm building freetype 2.13.2 (along other dependencies) using the conan package manager, in cross-compiling setting (using mingw32 on a linux host). I get the following error message ../src/meson....
Pibben's user avatar
  • 1,975
0 votes
1 answer
40 views

Linker Error with MariaDB Connector/C++ When Using CMake

I'm encountering a linker error while trying to build a project using the MariaDB Connector/C++ 1.1.4 on Windows with CMake. I installed the MariaDB Connector/C++ from the MariaDB download page and ...
Nazim Araz's user avatar
1 vote
2 answers
68 views

how to compile MinGW32 for C-SKY processors?

for C-SKY processors there is an IDE CDS for Windows, it uses MinGW, but it has a very old version of GCC 6.3, I would like to update to 13.2, how to do this correctly? I tried to google and didn't ...
Andynvkz's user avatar
-1 votes
1 answer
31 views

File not recognized and recipe for target error in the BUSMASTER

I have got the error while building the node. The error is File not recognized and also recipe for target ABS_ECU failed error, Can anyone help me to get out from the error? D:\BUSMASTER\...
Srinidhi Dixit's user avatar
0 votes
0 answers
17 views

I can not add library of Protobuf to Eclipse IDE

I want to add protobuf lib to eclipse ide. I am using protof 27.2 and mingw g++ 9.2 to compile code. #include <iostream> #include "C:\Users\PC_5725\Desktop\Eclipse\Protobuf_ornek1\ProtoEx1\...
Enes Ayyildiz's user avatar
1 vote
0 answers
41 views

Redirecting python script's stdin to fifo results in RuntimeError: input(): lost sys.stdin

I have this python script that's meant to function as a server which reads commands from stdin which is redirected to a fifo: test.py: while True: try: line = input() except EOFError: ...
Verpous's user avatar
  • 716
1 vote
0 answers
54 views

"No include path in which to find stdio.h" error

I get this error when I try to run a C program: E:\c_stuff>gcc frist_c.c -o frist_c frist_c.c:1: No include path in which to find stdio.h But I already did reinstall MinGW and added the C:\minGW\...
Vishaka Rajapaksha's user avatar
0 votes
0 answers
61 views

No effect after i have updated my GDB version to 11.2. GDB debug failed

I have the same question. And i have all ready done the recommend solution that i updated my GDB to v_11.2. And i also have added it to the system environment path and updated the launch and task file ...
xs_william's user avatar
0 votes
0 answers
81 views

Weird error when injecting a DLL into a process - OSSL_QUIC_client_method could not be located in libcurl-4.dll

I have one of the weirdest problems I have ever encountered, and I can't find anything online about it. For some context: I have to emulate malware for my job, and this currently is requiring me to ...
anomaliesintent's user avatar
0 votes
0 answers
85 views

How to use .dll in vscode when .dll is the only file available (no .lib, no .hpp)

I was trying to create a project and use couple third-party .dll file, which does not have corresponding .hpp or .lib files. There is a working template from VStudio that import these dlls in a header ...
Yunlong's user avatar
1 vote
0 answers
36 views

I added the pathway to minGW in environment variables, but the system doesn't see it FIXED

EDIT: Fixed the problem by simply restarting my computer, thanks everyone for answers and suggestions. When I change the directory manually in the command prompt to the bin of mingw, and run g++ --...
Otairo's user avatar
  • 11
0 votes
0 answers
91 views

Issues with Eigen Library Setup in VS Code for C++ Projects

I am encountering difficulties in including the Eigen library in my C++ project using Visual Studio Code and MinGW. Despite following multiple tutorials, I am still receiving the error: Eigen/Dense: ...
Manjunath Neelmath's user avatar
0 votes
0 answers
90 views

How to configure ollama setup exe from its source code

I was required to install Ollama setup exe from the source code in windows I found the steps as Note: The Windows build for Ollama is still under development. First, install required tools: MSVC ...
Diksha Gupta's user avatar
0 votes
1 answer
80 views

MingGW installer closes itself?

I tried installing mingw-w64 to start coding in C, after downloading the 'mingw-w64-install.exe'. I ran it, it opened the windows prompt to ask me if I want it to make changes to my device (In which I ...
CakeOnBake's user avatar
0 votes
0 answers
24 views

How to install an older version of package in msys2?

I would like to install an older version of boost on msys2 to check if newer version of boost causes some issue. But from https://packages.msys2.org/package/mingw-w64-ucrt-x86_64-boost?repo=ucrt64, I ...
Felix F Xu's user avatar
0 votes
0 answers
61 views

Freetype missing - CMake on Windows

I have been through all the posts I could find on here about this but nothing works. I am trying to build a project using CMake on Windows using Visual Studio Code. I have installed, VS with C/C++ &...
DrBwts's user avatar
  • 3,629
1 vote
0 answers
44 views

GStreamer and Golang (Windows 11)

I'm trying to run the launch example using Golang and go-gst library on Windows, but I keep getting an error. C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1 C:/...
Danijel Kapetanovic's user avatar
-1 votes
2 answers
84 views

how to compile a c++ file that uses wxWidgets using Mingw(gcc/g++) or using a makefile

i can compile c++ file using visual studio, but i wanna compile it using Mingw(gcc / g++). Note: i don't know much about wxWidgets when i run gcc main.cpp -I C:\wxWidgets-3.2.5\include\msvc -I C:\...
Udan Jayanith's user avatar
0 votes
1 answer
130 views

Why am I getting "undefined reference" errors trying to use OpenCV in Qt Creator with MinGW?

Just started to use OpenCV and Qt. When I use Qt 6, according to the routines in the book entered the corresponding code, but in the compilation stage has been reported an error. Originally I thought ...
望曉天's user avatar
-1 votes
1 answer
58 views

Link against import lib or dll?

I find I can link against a dll directly using Mingw g++. g++ -shared -o hello.dll hello.cpp g++ -o world world.cpp hello.dll I used to link against the import lib of dll. What are the differences?
William's user avatar
  • 939
1 vote
0 answers
29 views

MinGW empty output from macro dump command

The switches -dM -E -x c++ /dev/null work very well with my installation of arm-gcc 7.3.1 (and, also, 13.2.1) to generate a list of compiler-provided macros: #define __cpp_init_captures 201304L #...
avigt's user avatar
  • 41
1 vote
0 answers
54 views

How to build xmrig on windows with MSYS2 or VS 2022?

I am trying to build xmrig on Windows 11 using mingw compiler since 3 days, however I can't figure it out as I am constantly receiving errors. I'm following tutorial on official xmrig page. What have ...
Mixtuur's user avatar
  • 59
0 votes
1 answer
53 views

How to Resolve C++ File Debugging Issues in VS Code? [duplicate]

cl.exe build and debug is only usable when VS Code is run from the Developer Command Prompt for VS. This message pops up while i am trying to debug the issue, as per internet I saw this error was ...
Nilotpal Maitra's user avatar
0 votes
0 answers
88 views

how to configure CMake project so that clangd extension can see system headers in VS Code?

I have a setup of VS Code in windows 10 using MinGW for c++ development and I want to use the clangd extension for code completion and insights, the problem I'm having is that clangd can't find system ...
Teo's user avatar
  • 23
1 vote
0 answers
38 views

How to let clangd parser know about standard library files?

I've recently started learning C, and I'm quite new to it. I'm using Neovim, which I'm also quite new to. The issue I have is that the clangd LSP I installed cannot find the standard header files such ...
LordOfRage's user avatar
0 votes
0 answers
43 views

Connecting irrKlang in CMake

I'm trying to link irrKlang to my CMake project. For that, I've started to follow this example. Also, I've downloaded a 64-bit archive from the official website and put it in the third-party directory ...
gunslaveunit's user avatar
1 vote
0 answers
141 views

How Could I update gcc version to using pandas?

I want to update my gcc version to 8.4 or higher to install pandas. When I tried to install panads like this, pip install pandas It shows the error like this Installing build dependencies ... error ...
Azin's user avatar
  • 37
0 votes
0 answers
35 views

Why the program built with Mingw cannot be run?

Suppose we open a cmd window and enter into the Mingw bin directory to build a hello world program in another directory: cd c:\mingw\bin g++ -o c:\test\app.exe c:\test\app.cpp The compiling is ok and ...
William's user avatar
  • 939
0 votes
1 answer
96 views

Issues Linking Google Benchmark with g++ on Windows (MSYS2) using vcpkg

I'm trying to use Google Benchmark with the g++ compiler on Windows. I installed the library using the vcpkg package manager with the triplet x64-mingw-static. Here is the command I used to install it:...
Benjiro Fukuoka's user avatar

1
2 3 4 5
138