Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [c]

C is a general-purpose computer programming language used for operating systems, games and other high performance work and is clearly distinct from C++. Questions about programming in C are off topic and will be closed or migrated. Consider asking your question at Stack Overflow instead.

0
votes
0answers
26 views

McAfee Security is falsely identifying a C project file as a virus [duplicate]

Received a warning with supposed virus attack identified as “Real Protect-LS!DF9621E2700F” connected to a C file. And now the C code will not compile and run after this virus attack. How can I stop ...
0
votes
1answer
18 views

Repair C compiler via telnet

When I try to install a perl mod in cPanel I get this error: Checking C compiler....Could not locate an executable "gcc" binary....Done ** Unrecoverable Error ** The C compiler is not functional ...
0
votes
0answers
8 views

sniffer with Wireshark in c9

I have a C code of client-server. I want to run them on C-9 IDE and sniff and analyze the traffic between them with Wireshark. how can I run Wireshark on c9 web, and analyze the traffic of the client-...
-1
votes
0answers
13 views

Python Data To C Program [closed]

I'm making a deep learning program with python, an the output of this program is an array. But for this problem, let's say that the output is just a number. I need to take this number an give it as an ...
0
votes
0answers
9 views

Controlling “App volume and device preferences” menu, from settings, with python 3.6, or any language(Windows). Automatic App audio device switching

Good afternoon everybody, first, I will describe you what I want to do. Well, my goal is to use two audio outputs, that could be the USB, HDMI, computer default device, or bluetooth headphones, or any ...
-1
votes
0answers
13 views

how can i get the memory address of the struct member, do not in code? [on hold]

How to obtain the memory address of the structure member of the program, which is in mcu through the pc-How to obtain the memory address of the structure member of the program in mcu through the pc-...
0
votes
0answers
7 views

Unable to debug on Netbeans Mac

I tried installing gdb using homebrew on macos for netbeans several times and end up with this error:" Unable to find Mach task port for process-id 2459: (os/kern) failure (0x5).\n (please check gdb ...
2
votes
1answer
43 views

Weird C++ library linkage issue with clion and cygwin

I have the following error when trying to compile a c++ program while linking the library Libssh on Windows (packages libssh-common and libssh-devel both installed with cygwin). Clion doesn't give me ...
0
votes
0answers
10 views

Paho MQTT throws undefined reference error during compile [migrated]

I have a problem using Paho MQTT client in C. I downloaded the pre built binaries for my system (Windows 10 64) from their projects page. I unpacked the zip file to a folder in the documents folder, ...
0
votes
0answers
16 views

How to use my Windows folder in Mobaxterm power shell?

I have multiples tcp programming c codes on my desktop and I want to test them. I have downloaded Mobaxterm, it works great but I don't know how to get access to my desktop.
0
votes
0answers
19 views

Simulating WAves Nearshore and the use of triangle.

Hei, I'm trying to get into SWAN and triangle, while not having any coding experience and I'm having a hard time since following designated guides do not give results. Does anybody have any idea how ...
0
votes
0answers
15 views

Is there a “collected together” explanation of the threading and atomic support in C11?

I want to start using some of the atomic locking support in C11 to speed up some existing multi-threaded code, but I'm struggling to find a reasonably concise yet complete description of the various ...
-1
votes
0answers
10 views

Structure values differ on client side and server side [migrated]

I was trying to send structure over UDP socket from client to server. the code is as follows: file: coapHead.h ... typedef struct{ uint8_t ver : 2; uint8_t t : 2; uint8_t tkl : 4; ...
2
votes
0answers
46 views

Custom Java app, does not show startup splash screen on some devices?

I have a Java app, called Infra12. It is not for sale so wont be in common use. It is designed to interrogate industrial equipment, but the supplier of the software has gone into administration, and ...
1
vote
0answers
36 views

Installing FreeRDP and hit to error: field ‘des3_ctx’ has incomplete type

I was trying to install FreeRDP server using the link : https://github.com/FreeRDP/Remmina/wiki/Compile-on-Ubuntu-16.04 I hit to the below error during make && sudo make install [ 25%] ...
0
votes
1answer
21 views

MinGW compiler : unable to run program in command prompt

I downloaded MinGW compiler . I wrote a small c program and compiled it as follow : gcc -c firstc.c It generated an executable file as "firstc.o" . But when I tried to run the program in command ...
0
votes
2answers
67 views

Is it possible to run a C-File using an ARM CPU emulator?

I had the idea of emulating an ARM CPU to run different programs. To begin with, I wanted emulate the CPU and run for example a simple "hello world" written in C. Sadly I found no answer using Google ...
1
vote
1answer
26 views

using project folders in vagrant

I have recently installed vagrant and red hat in windows 8 environment. I want to use my projects in windows drive in redhat running on vagrant machines. Is there a mechanism to copy paste or access ...
0
votes
1answer
54 views

How to `export PATH` from C [closed]

Wondering how to accomplish one of these things from C, so that it persists like it would from ~/.bashrc or ~/.bash_profile: export PATH=~/bin:$PATH export PS1="$ " Wondering if I should use the ...
2
votes
0answers
128 views

Changing the TCP Destination address using WinDivert or PyDivert

I'm trying to "route" TCP traffic by using WinDivert to change the Destination Address (and port) of certain outbound traffic. I began with using PyDivert as I am a total and complete programming ...
1
vote
0answers
60 views

How to debug program creating RAW socket?

For example I have this program: int main() { int sockfd = ::socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); if ( sockfd == -1 ) printf("Error\n"); else printf("Success\n"); return 0; } ...
2
votes
0answers
35 views

Command Prompt settings won't save

I've tried running as admin and setting both Defaults' and Properties' window sizes. upon re-opening cmd the window is small again even though Default settings are still set right. Also tried ...
0
votes
1answer
111 views

ffmpeg Remap Filter is not scaling for me

I'm still new to all the stack exchange sites, so if I'm not asking this in the right place, feel free to point me in the correct direction. Link to the filter I'm using: https://trac.ffmpeg.org/wiki/...
3
votes
3answers
3k views

VMWare Workstation vmmon broken on Ubuntu 18.04

I upgraded to Ubuntu 18.04 and the vmmon.ko module for VMWare Workstation 12.5.9 now fails to build. /usr/lib/vmware/modules/source/vmmon-only/linux/driver.c: In function ‘LinuxDriverInitTSCkHz’: /...
1
vote
2answers
696 views

Setuid and setgid not working

I'm having a problem with setuid and setgid. I've written this C code: int main() { setuid(0); setgid(0); system("/path/to/script.sh"); return 0; } Compiled it using gcc: gcc test.c ...
0
votes
1answer
91 views

Assign values to variable from text file. Search for the string in file. Replace the string in file?

I am working on a project where I need to correct some thousand lines of data. I have already completed the half work and now I am stuck on final part. I have a file called tree.txt which has list of ...
0
votes
2answers
129 views

how to open reference in new or next split in vim

When I move over a key word and then hit ^], it will jump to the definition in thecurrently active split. How can I keep the current split the same and instead open the definition in another split ...
-2
votes
3answers
287 views

Is C a part of the .NET framework?

I've searched the net for this, but I couldn't really find an answer. I've found this though: https://msdn.microsoft.com/en-us/library/hh875057.aspx It says that C++ is a part of the .NET framework, ...
0
votes
0answers
100 views

linux virtual comport drivers for AR drone.

I have been working on this problem for quite a while now and cannot seem to find the correct driver for Linux to interface with an STM32F407. The Linux runs on an AR drone 2.0. The STM already acts ...
0
votes
0answers
332 views

NetBeans not working (can't run, clean, compile or build)

A few days ago Netbeans just stopped working completely. I can browse the settings, create projects etc. but nothing happens when I try to run the project (C projects), compile or build it, the output ...
0
votes
1answer
91 views

Why don't I get information from `apropos pthread` in Terminal on OS X?

When I run apropos pthread in Terminal on OS X, I get pthread: nothing appropriate. However, when I run the same command on a Linux machine, I get over a hundred APIs for reference in man-pages. I ...
0
votes
1answer
302 views

Predefine unix socket path for ssh-agent

I have an application which creates an x-session, the problem I'm having is with ssh-agent. Lets say I have created a unix socket, and then create x-session(in this session ssh-agent is launched). ...
-1
votes
1answer
190 views

what is the limitation of Libmicrohttpd?

I want to develop a HTTP server based on the library Libmicrohttpd. And I'm wondering what is the maximum number of users connecting at the same time that Libmicrohttpd can support?
0
votes
1answer
79 views

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

I need to write a program that creates a floppy image of FAT12. The instructions include creating a boot sector, making sure I set aside space for two FAT tables, setting up space for root directory ...
0
votes
0answers
38 views

Error when run my makefile for C compiler AIX UNIX

Below is my makefile CC = xlC CFLAGS = $(DEBUG) -O -q64 -qrtti=all \ -I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public \ -I$(ORACLE_HOME)/network/public -I$(ORACLE_HOME)/...
0
votes
1answer
1k views

CMake error when creating project in CLion

I recently uninstalled Cygwin and switched to using MinGW as my toolchain. I installed the required packages; I triple checked to make sure that mingw32-make, mingw32-gcc and mingw32-gcc-g++ are all ...
2
votes
1answer
173 views

Vim match containedin not working as expected

I have tried to extend the C syntax in Vim with the example in the manual. First I launch vim without any config: vim -u NONE test.c Then I load the c-syntax and create my extension syntax on ...
0
votes
0answers
50 views

Driver from C code (autoload, kext, lkm)

I've made a question on StackOverflow thinking it was the right place for asking, but they directed me here because they think its a SuperUser-releated topic. So here I am :) I'd like to ask you how ...
1
vote
0answers
58 views

setuid bit has different behavior depending on the directory

I've been testing the setuid permission, and I am having some trouble to making it work. Let's say I am doing the tests with two user owneruser and otheruser. I've written a simple c program that ...
1
vote
0answers
70 views

Windows 10: New Audio adapter is set as default

I have an winapi application which creates an audio adapter, but the problem is that whenever adapter is created it is set as default audio adapter and I don't want that. Does anyone know how to ...
0
votes
2answers
108 views

linux high speed character detection rs232

I have to do a code in C to detect the inter-characters time within a rs232 line on linux. Inter-characters time to detect could be 1ms. So I need something to timestamp very quickly an incomming ...
0
votes
1answer
48 views

Converting data into sound (alphabet into low frequency noises), how can it be done? [closed]

I'm looking to assign a specific frequency to each letter, so that the frequency is sent out for each letter, when processed (whether by key press, or otherwise). Can you set speakers to produce any ...
0
votes
1answer
195 views

How to check used space for pvdisplay?

In AIX using lspv hdisk0, i am able to get total pps, free pps, used pps TOTAL PPs: 1119 (71616 megabytes) VG DESCRIPTORS: 2 FREE PPs: 272 (17408 megabytes) HOT SPARE: ...
1
vote
1answer
396 views

How do I cross compile the avahi-client and avahi-common libraries?

I have developed a C application that uses the avahi-client and avahi-common libraries. I need to do a cross-compilation of these libraries, so I downloaded the project source in github, https://...
0
votes
0answers
66 views

How faithful is fgetc, fputc, and gcc compile?

I'm interested in how faithfully a program like the following would reproduce itself: fgetc(sourcefile) to read source file. fputc(daughterfile) to write a new source file. gcc to compile the ...
1
vote
0answers
26 views

supervisord holds port after main program termination

I am spawning supervisord from a C program through system() in the foreground which starts 2 additional threads in the foreground. Normally if everything goes well this is not an issue, however if ...
3
votes
1answer
235 views

how to renew corrupted wchar.h

Tried to compile C++ code, but fails with: /usr/include/wchar.h:299:8 :: error: 'wchar_d' does not name a type extern wchar_d *wcswcs (const wciar_t *__`aystack, gonct wchar_p *__needle) The file /...
0
votes
1answer
144 views

Makefile is looking MQ library in wrong place on LINUX

In my makefile I have a line /usr/bin/gcc -m64 -DMQ_SEND /home/avalanche/oleg/src/ctm_mq_con_ex.o -o /home/avalanche/oleg/bin/ctm_mq_con_ex -LP/opt/mqm/lib64 -lmqm -lmqmcs -lmqmzse -lnsl -ldl ...
0
votes
0answers
145 views

Unix / C: Surpassing root permissions as group

I have access to a folder as group (incl. password). There are 2 files: file & secret: These are the permissions: -rwsr-sr-x 1 root root 8.9K Apr 29 2016 file -r--r--r-- 1 root root 944 ...
43
votes
4answers
9k views

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

I've downloaded a dead simple Windows program from GitHub (this if it's relevant). I downloaded it as a ZIP file, but I can't figure out how to install it. It's written in C, I think. Do I need a ...