All Questions
1,079
questions
1
vote
1
answer
29
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 ...
-3
votes
0
answers
44
views
mingw32/bin/ld.exe: cannot find -lomp
I'm trying to test a program in C for a friend to compare performances of the "sieve of Eratosthenese". I'm testing it in Visual Studio Code and in the terminal, they tell me to put this in ...
-2
votes
0
answers
73
views
Only the First Line of Output is Printed in C Program in VS Code on Windows Using MinGW
In C program only the first line of output is printed when I run the compiled executable. Despite the program compiling without errors, the subsequent lines do not appear.
Details:
Operating System: ...
-1
votes
1
answer
46
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?
1
vote
0
answers
26
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 ...
0
votes
0
answers
34
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 ...
0
votes
0
answers
38
views
Adding custom section to PE with gcc (mingw)
I use gcc (mingw) on Windows and I want to add a custom section into the PE file similar to the way this is discussed for ELF in https://stackoverflow.com/a/30617411/1630083
But I did not find a way ...
-1
votes
1
answer
38
views
Use MinGW gcc command to link and compile the executable file, but there is no output when executing
I use the third-party library shapelib downloaded by vcpkg to write a program that reads shp files. The file is stored in the following location:
│ main.c
│ main.exe
│ shapefil.h
│
└─shapelib
├─...
0
votes
0
answers
42
views
URLDownloadToFile() reference undefined (c++) [duplicate]
DISCLAIMER: Yes, I do know that there is one that has the exact same program as me. link to that post: Error When trying the urldownloadtofile function. I coincidentally have the exact same issue.
The ...
1
vote
1
answer
37
views
GNC C: Ideas over main starting point confusions?
An extremely simple problem demonstration:
#include <stdio.h>
void myFunc()
{
puts("Greetings, Code 'Mon ...");
}
int main(int argc, char *argv[])
{
puts("zMain 01.\n&...
1
vote
0
answers
45
views
Can't convert .o file created by NASM to .exe using GCC on Windows
I am trying to learn how to make apps using x86. I am using NASM to convert a .asm file to a .o file, then GCC to convert that .o file to a .exe file.
Here are the commands I used in Windows CMD:
nasm ...
0
votes
2
answers
39
views
Get unicode character on the screen ncurses
I'm facing a problem with getting a U+2588 █ character from the screen by using the winch().
Let's assume I have a window called win and it looks like this:
###████###
I want to redraw all # ...
0
votes
0
answers
34
views
Bump of gcc in mingw introduced dependency on libwinpthread-1.dll in the compiled binaries
I used to have a mingw based on gcc 7.4.0 and binaries that I compiled with it would work just fine. But once I bumped to mingw based on gcc 13.2.0, all the binaries I compile suddenly have a runtime ...
0
votes
0
answers
78
views
How to obtain mingw-w64 version 9.3.0 or older for MSYS2?
I need gcc version 9.3.0 or an older version (> 5.0) of mingw-w64, either i686 or x86_64 for MSYS2. Where can I find this package?
1
vote
0
answers
82
views
Making portable execution errors
Making portable execution errors.
I have two files: kernel.c and boot.asm:
boot.asm
[bits 32]
section .text
align 4
dd 0x1BADB002
dd 0x00
dd - (0x1BADB002 + 0x00)
global start
...