Skip to main content
Share Your Experience: Take the 2024 Developer Survey
87 votes

How do I install a Windows program (written in C) downloaded from GitHub?

You look around and find the installer on the release page. Sure you could compile the source, but I don't think that's what you want.
Journeyman Geek's user avatar
  • 130k
66 votes

How do I install a Windows program (written in C) downloaded from GitHub?

.c and .h files are C source code. You will need to install a C compiler such as Visual Studio, tcc or something similar, load the project and then compile it to run it. Failing that, the project ...
Fazer87's user avatar
  • 12.7k
47 votes
Accepted

Compiling C files on Ubuntu and using the executable on Windows

The standard compiler toolchain on Ubuntu will produce Linux executables, not Windows executables. It is possible to install a cross-compiler that will produce Windows executables - this Stack ...
john_e's user avatar
  • 656
32 votes
Accepted

How does the OS tell whether an "Address is already in use"?

You are probably re-starting your program too fast, or the program is not closing the socket. Even after the socket is closed, Linux keeps the connection in limbo for some time, but will prevent any ...
harrymc's user avatar
  • 484k
30 votes
Accepted

How do I install a Windows program (written in C) downloaded from GitHub?

Github is primarily used by programmers to collaborate on projects. The 'Download ZIP' option downloads a copy of the source code to your computer. This usually1 doesn't contain a copy of the compiled ...
undo's user avatar
  • 6,091
18 votes

How do I install a Windows program (written in C) downloaded from GitHub?

This answer will be addressing the general question of building a source-only Windows application (in C). If you're lucky like the OP, you might be able to find precompiled binaries. The first thing ...
Bob's user avatar
  • 61.8k
12 votes

Compiling C files on Ubuntu and using the executable on Windows

This is called cross-compiling. You need a "toolchain" (compiler, linker, etc.) that will generate the appropriate code and format, involving: The target processor architecture. In your case is is ...
jcaron's user avatar
  • 1,873
7 votes
Accepted

How do I grant access /dev/console to an executable?

You control access to a device the same way you control access to a file: By looking at permission and ownership, and executing the program either as the user that has access permission, or as member ...
dirkt's user avatar
  • 17k
7 votes
Accepted

how to open reference in new or next split in vim

<C-]> doesn't jump to the reference of the word under the cursor, it jumps to its definition. Anyway, you can use <C-w>] to open the tag in a new window. See :help window-tag.
romainl's user avatar
  • 22.9k
6 votes

C program cannot open serial port on OS X when user is member of 'wheel'

Since I am a Mac OS X user, I added myself to the 'wheel' group based on this answer: sudo dseditgroup -o edit -a $username_to_add -t user admin sudo dseditgroup -o edit -a $username_to_add -t user ...
Xofo's user avatar
  • 174
6 votes

VMWare Workstation vmmon broken on Ubuntu 18.04

I found a solution and create a script file based on mkucebek's github sources. You must create a file with this content and run it each time it's needed : #!/bin/bash VMWARE_VERSION=workstation-12.5....
Charly's user avatar
  • 61
4 votes
Accepted

The "other" finger (GECOS fields at /etc/passwd)

The best way i have found is to use getent because that will work with LDAP/NIS or other methods of non local users getent passwd $UID| awk -F ":" '{print $5}'
Tim Hughes's user avatar
4 votes

How to play a PCM file on an UNIX system?

`ffplay Tested on Ubuntu Linux 15.10: sudo apt-get install ffmpeg ffplay -autoexit -f u16be -ar 44100 -ac 1 in.raw or: sudo apt-get install play play -b 16 --endian big -e unsigned -r 44100 in.raw ...
Ciro Santilli OurBigBook.com's user avatar
4 votes

Visual Studio Code doesn't run code

CTRL+SHIFT+X Type in search box Code Runner Install the extension Than click on File - Preferences - Settings Type code run in search box. Scroll down until you find Code-runner: Run In Terminal. ...
K. I.'s user avatar
  • 41
4 votes
Accepted

Net User information VS Get-ADUser

The lastLogonDate property returned by Get-ADUser maps to the lastLogonTimestamp attribute in AD which is replicated but not kept completely accurate. See the description here. Net User refers to the ...
Steven's user avatar
  • 156
3 votes
Accepted

Is C a part of the .NET framework?

It says that C++ is a part of the .NET framework Actually, it does not. It says Visual C++ is part of the .NET Framework. Additionally, Visual Studio, can compile C and C++ code using Microsoft’s ...
Ramhound's user avatar
  • 42.9k
3 votes
Accepted

how to renew corrupted wchar.h

First, you need to find out which package provides this file. You can use the Debian package contents search for this: https://www.debian.org/distrib/packages#search_contents It will then say libc6-...
Daniel B's user avatar
  • 63.5k
3 votes
Accepted

How to handle addition of new files and directories to FAT12 floppy image from Ubuntu 16.04?

mount just uses the same filesystem driver as when mounting your real disks and USB sticks. So, yes, it recognizes FAT12. You can explicitly tell it to use the FAT driver using -t vfat (or -t msdos). ...
grawity_u1686's user avatar
3 votes

How do I grant access /dev/console to an executable?

As long as your comfortable with the security implications, you can use the 'setuid' flag to allow users to run your executable as root. First change ownership of the executable to root user and ...
diametralpitch's user avatar
3 votes

Do Linux bases operating system provide an API to check the amount of available RAM memory of the system?

Read and parse the file /proc/meminfo, it lists both available and free memory. You can do that in any programming language.
dirkt's user avatar
  • 17k
3 votes

Where's the man page for the `sizeof` C function?

You can use man -wK 'sizeof' | sort -u to find the articles that contain sizeof, but that'll return a lot of results. However notice that every article about something will have that thing as a ...
phuclv's user avatar
  • 28k
3 votes

How to execute a compiled C program in Linux terminal

Simply just do gcc filename.c && ./a.out. This will compile and run the code using GCC.
Todd's user avatar
  • 331
3 votes
Accepted

Can we store a whole string with the help of a single character pointer? If yes , How?

It's only a matter of interpretation: *p is a character, you are right. But the C routines from string.h or stdio.h will interpret p as pointer to the first character of a "string", with the ...
jvb's user avatar
  • 3,190
3 votes

Can we store a whole string with the help of a single character pointer? If yes , How?

The characters "Vladimar" are stored as a string literal, which is stored in the read-only segment of the executable image. The pointer is assigned to the start address of the string literal. Note ...
suspectus's user avatar
  • 4,873
3 votes
Accepted

How can I send CR (i.e. ascii 13) to a c program from keyboard (running linux)? ALSO, why do I have to send EOF twice to terminate this program?

So, is there actually a way to send a CR from a keyboard under Linux You are sending a CR, but the tty layer will translate it to a LF by default, so the program cannot receive a CR. Use tcsetattr() ...
grawity_u1686's user avatar
3 votes
Accepted

How to delete a file with 0 bytes, but read "þa" from it in a c program

This question has already been answered on stackoverflow here. A shameless copy/paste in case that link should ever die: Open a command prompt and use these commands to first rename and then delete ...
Silbee's user avatar
  • 1,242
3 votes
Accepted

openssl's d2i_X509 complains with "wrong tag"

What you have there isn't an X.509 structure (certificate) it's a SubjectPublicKeyInfo that is just defined in X.509 RFC that seems like an RSA public key. I'd suggest using another openssl function ...
Hound's user avatar
  • 46
3 votes
Accepted

Is it possible to scan for Bluetooth devices without the bluetoothd daemon running?

The post Linux command to connect to a Bluetooth device might be pertinent. This unanswered post details using HCI as follows. To setup the Bluetooth hardware: sudo modprobe hci_uart sudo modprobe ...
harrymc's user avatar
  • 484k
2 votes

"bin/sh: can't access tty; job control turned off” error when running shellcode"

If you can change the command of the shell, try:sh +m instead of sh. That worked perfectly for me.
Hack5's user avatar
  • 161
2 votes

In GDB, how can I jump directly up to the topmost call stack frame?

fr 0 will take you to the top-most stack frame. fr stands for frame.
The Vivandiere's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible