Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
Andynvkz's user avatar
-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: ...
BinaryBard's user avatar
0 votes
0 answers
31 views

C:\Users\DELL\AppData\Local\Temp\cctSSakm.o:test.c:(.text+0x1e): undefined reference to `get_string' collect2.exe: error: ld returned 1 exit status

I see the error c:\Users\DELL\AppData\Local\Temp\cc61L1BV.o:test.c:(.text+0x1e): undefined reference to `get_string' collect2.exe: error: ld returned 1 exit status C #include <stdio.h> #include ...
ayham's user avatar
  • 1
0 votes
0 answers
33 views

How can I declare a pointer to a constant struct literal that uses a flexible array in C if possible? [duplicate]

So I wanted to store some constant text and data for parts of a level in a game in a struct, then put pointers for all those structs in a struct for each level, and pointers for all the level structs ...
nathanael grix's user avatar
0 votes
0 answers
13 views

Program got stuck after compiled by TDM-gcc-64bits with -pg flag (used for gprof) on Windows

I am using gcc 10.3.0 from TDM-gcc-64bits on Windows platform, and I am trying the gprof tool. However, after passing the -pg argument to gcc, my program cannot terminate normally, instead, after it ...
snljty's user avatar
  • 11
1 vote
2 answers
55 views

Problems of linking Ws2_32.lib using gcc

I thought that when I install gcc and mingw that crucial windows libraries are already imported with that. Apperantly not. Now how do I give the gcc linker the required libraries so that it can link ...
bangingmyheadontable's user avatar
0 votes
1 answer
45 views

C connection to mysql gcc linker error in windows

I am using c in Windows. I need to use mysql. I am having a really hard time trying to compile c code with mysql in it on Windows 11 os. I had it easy in linux where I just needed to run either of the ...
hussein's user avatar
  • 19
0 votes
0 answers
26 views

gcc make error on windows, how to resolve?

I'm trying to compile squid, a proxy and cache server, on windows using MinGW32 and MSYS32 for use with IIS and the make check and make install process is failing with these messages: In file included ...
chickencommander123's user avatar
2 votes
1 answer
64 views

Handling C2016 error on Windows using Visual Studio Code

I have to use someone else's C header files, which include empty structs. I have no control over these headers or I would change them as empty structs are not conventional C. The structs are throwing ...
Kenny Cason's user avatar
0 votes
0 answers
58 views

cs50.h in windows gcc guide

Can anyone help me to include cs50.h in VS code. I have windows but there is no option for Windows. I have searched so much but couldn't find anything. Can anyone please guide me from zero to install ...
Ibrahim Qamar's user avatar
-1 votes
1 answer
58 views

"junk at end of line" when assembling .s file compiled from C++ file using Clang and LLVM, but works with C file

I am learning how to use the LLVM toolchain. I have a .cpp file, and I'm trying to compile it to an LLVM bitcode file, compile the LLVM bytecode file into an assembly file, and then assemble the ...
Alex's user avatar
  • 472
1 vote
0 answers
51 views

Installing libpng gets error: C compiler cannot create executables

I'm currently trying to install pokefirered for ROM-Hacking following the INSTALL.md file in the repository. I've already install devKitPro and msys2 and am currently trying to install libpng. I ran ...
The Peeps191's user avatar
0 votes
0 answers
29 views

How to create an executable for windows from C source that includes openssl

I'm trying to create a Windows executable from C and I want to include openssl in it, so that the system that will run it, won't need to have openssl installed. I'm compiling on a Windows machine, ...
Stefano Cattaneo's user avatar
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 # ...
Artiom-Astashonak's user avatar
2 votes
1 answer
89 views

C: gcc returns "multiple definition of" error but msvc - doesn't

Here I have a small program: // header.h #pragma once int a; int reta(); // extra.c #include "header.h" int reta() { return a; } // main.c #include "header.h" #include <...
ItzYurix's user avatar

15 30 50 per page
1
2 3 4 5
62