C is a general-purpose computer programming language used for operating systems, games and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.

learn more… | top users | synonyms

0
votes
0answers
9 views

0711-317 ERROR: Undefined symbol

I am installing a C package named expat-2.1.0 in AIX 6.1 machine. While performing a gmake it popping the below output. /bin/sh ./libtool --silent --mode=compile gcc -std=gnu99 -I./lib -I. -g -O2 ...
0
votes
0answers
6 views

How to access PCI BarX value in DOS [on hold]

I used Turbo C and tried to write a DOS PCI tool. I can detect my PCIe SATA host card and get the PCI configuration by CF8/CFC IO port. And I got the BARx address. Assume BAR 5 register and value ...
0
votes
2answers
46 views

How to execute a compiled C program in Linux terminal

#include<stdio.h> main() { int a,b,c; printf("enter the value of a and b for addition:\n"); scanf("%d %d",&a,&b); c=a+b; printf("Addition of ...
1
vote
2answers
54 views

Full screen mode not working for tc

I am using a windows 7 os. I am assigned by my instructor to write a C program to draw a circle. I was asked to do it using turbo c. Now, I have installed tc from an old cd of mine. When I open my ...
0
votes
1answer
24 views

Vim inserting C style comments

:command Linecomment :normal ^i/*<ESC>$a*/<ESC> The above command is one that I came up with in order to comment out an entire line in C, normally for debugging purposes and whatnot. I ...
0
votes
1answer
16 views

Gstreamer unable to link API's , Linker error

I was trying to read the PAT table information , Color Balance interface etc using gstreamer in ubuntu . but the the definitions of the API's used by gstreamer to achieve these are not available ...
0
votes
0answers
22 views

How do I set up the NVIDIA nvcc toolchain in Netbeans 8.0 in windows 8.1

I found a plug-in for the nvcc toolchain but it only works on linux. What I want is to be able to compile CUDA C code on my windows computer from within Netbeans. ATM I'm using Netbeans 8 and MS ...
0
votes
0answers
13 views

How to get stdout of another program [duplicate]

Some Linux program prog1 permanently prints to console. I'd like to read and analyse it's stdout in my C program prog2 as stdin. I can't change prog1 source. I expect something like this command: ...
0
votes
0answers
29 views

How to include Yacc/Bison-Parser into own project? [closed]

I'd like to use the yacc/bison parser for my own project. When building the Parser with my own Makefile, everything works fine. I took the sources from ...
1
vote
1answer
44 views

Cannot compile C programs after deleting libc.a and libc.so

I removed libc.a and libc.so files from my Raspberry Pi. I read somewhere that it was going to fix a problem i had with the mpi.h library, but instead of that it has prevented me from compiling C ...
0
votes
0answers
50 views

How to convert 'c' program into python module

I want a program that can encrypt/decrypt a file on windows 7 using xxtea which is a fixed up version of tea. I found that google has such a system at ...
0
votes
2answers
63 views

Issues installing linux drivers from makefile

Since this was more of a software/driver issue I posted the question on SuperUser rather than EE Exchange. I searched around on the net a bit and found a very useful USART to USB converter bridge. ...
0
votes
2answers
128 views

where's the man pages for sizeof function in c lib?

How come there's no man pages for sizeof c function ? $ man 3 sizeof No manual entry for sizeof in section 3 $ man sizeof No manual entry for sizeof I see man pages for other c functions if I do ...
0
votes
0answers
71 views

Redirect output to console I/O on IAR Embedded Workbench

I have coded a project of mine in C on a Windows machine in the software IAR Embedded Workbench IDE. The project compiles and runs fine. I have a couple of printf functions in my code. But the thing ...
2
votes
1answer
51 views

Record a process's User/System/Real time in Linux/Bash with greater precision

What I am looking for is something along the lines of /usr/bin/time, however, this usually does not have enough precision. I am running a C program (that I can edit and recompile) and I need to ...
0
votes
1answer
54 views

stuck on i2cmaster library

i want to try repair my batteries with smbus hacker code over arduino. first it was has some problems. i have tried to fix them and i fix. now i have problem on library i2c\test_i2cmaster.c.o: In ...
1
vote
3answers
271 views

Change network settings programmatically without root

I want to change network configurations like dhcp, ip address and so on programmatically. But what I don't want, is to run my application as root. So my question is: What would be a common approach ...
1
vote
1answer
69 views

How to install gcc 4.4.7 on Mountain Lion

I need to install a specific version of the GNU GCC compiler, gcc 4.4.7, on my macbook, but I'm not sure how to do this. Most places I've found install later versions but I need to install that ...
0
votes
0answers
13 views

accesing G-listed sectors

is it possible to acces g-listed sectors? in the scsi protocol I can get the amount of g-listed sectors via a a scsi command however I wonder if I can try to read from them. maybe with a direct read ...
0
votes
0answers
41 views

How to get PID of proccess that send SIGRT?

I have a problem with getting sender PID. I write a simple program, but it is not working in function sig_handler in (*info).si_pid. It tells me that there is no such a member. Why? int sethandler( ...
0
votes
1answer
97 views

C compiler in command prompt

It is my understanding that the Windows operating system (windows 7 to be exact) must come with a C compiler because the OS is written in C. How can I access such a compiler to compile my C source ...
1
vote
2answers
138 views

How to invoke shell script while staying in interactive mode

When I call: execl("/bin/sh", "/bin/sh", (void *) NULL); The /bin/sh/ program is started, which opens a shell in which I can type commands. However, if I call: execl("/bin/sh", "/bin/sh", ...
0
votes
0answers
59 views

How to use astyle to format code for linux driver

How can I use astyle to format code for linux driver? I try usingn astyle like this astyle --style=linux myfile.c but it does not fix things like int i,j; there should be a space after ','. ...
0
votes
1answer
63 views

Linux/Bash: Comment every line matching a pattern

sed is foreign to me, to say the least. I'd like to traverse a C project tree and comment out every line calling the function LogMsg(). Something that'd achieve the following: foreach: line within ...
0
votes
1answer
39 views

Virtual Machine Implementation similar to the JVM [closed]

I'd just like some information about how best to implement a virtual machine. I'd just like to know a couple of things: Is a VM more like a Virtual Computer or a Virtual Processor? What are some ...
2
votes
1answer
99 views

Get Physical NIC's Mac Addresses on Linux

I am trying to get the mac addresses of a Linux machine. I only want the physical NIC's though, not the virtual ones. I have been doing some searching and maybe I am not punching in the right terms ...
0
votes
1answer
69 views

Should I use Python or C for a language interpreter? [closed]

I'm planning on writing a language interpreter for a custom language of mine. The language will work similarly to PHP in that it will be run off of a web server and the code will be executed in the ...
-1
votes
1answer
95 views

C/C++ programs hang in Windows 7 console

I've installed Windows 7 Home Premium. It's working fine, except one major problem. When I run any C or C++ program in the console, using any software like Dev-C++, Code::Blocks or Visual Studio, it ...
0
votes
1answer
67 views

Need advice with making a customized linux distribution (From scratch or pre-existing distro?)

I'm working on an application on a bootable USB drive that runs at startup (doesn't give the user access to anything but this program). I figured I'd utilize an existing distribution, strip it of ...
0
votes
0answers
32 views

Building php module on linux - lpsolve55

I'm trying to install a php model called lpsolve. I installed it on OS, now trying to make a use of it for php. I installed them as explained here: http://jeyroz.tumblr.com/post/605709794/lpsolve-php ...
0
votes
1answer
28 views

To run Makefile.tpl in OSX

I have the file here which syntax seems to be near normal make-file with parameter install. I run unsuccessfully make install I get make: *** No rule to make target `install'. Stop. I get the ...
0
votes
2answers
65 views

Why execute permisiions along with write permissions needed for creating file in c(Linux)?

I am trying to create a file from my c source code on linux. I am using dd command for reading from a file and writing in to a file by creating there. If i don't have execute permissions(I have write ...
0
votes
1answer
360 views

Why i can't run idle in python, while i am connected through putty

here is the the text it shows when I try to run idle: Traceback (most recent call last): File "/opt/epd/bin/idle", line 5, in <module> main() File ...
1
vote
1answer
88 views

How to create an operating system on top of Ubuntu 13.10

I want create an operating system the way Mac did, building a program on top of a Unix operating system. I am planning to make a small operating system with a small amount of functions using C. I do ...
0
votes
1answer
52 views

running program in high priority -> does not log anymore

I have a project in visual C 2010 that needs real-time timing in high priority to eliminate stuff like hard disk maintenance and stuff. I ran the .exe file of my project using start "" /high & ...
0
votes
1answer
73 views

Cant compile SDL source file with gcc

i downloaded a manual of introduction to graphics programming with SDL, so i tried to compile my first source and it logged the next error the command to compile it was: $ gcc helloWorld.c [-o ...
3
votes
1answer
180 views

Is it possible to compile with make.inc and Makefile

I am a newbie to the use of make files. I have added a new module in project using make.inc The structure of project is like:- /Project/build.sh /Project/make.inc /Project/Module1/Makefile ...
0
votes
0answers
40 views

Codeblocks with MinGw not storing compiler location

I recently switched back to Windows on my primary computer and installed codeblocks bundled with MinGW. Now every time I launch the IDE I get a message warning me that codeblocks can't find my ...
2
votes
1answer
152 views

How hex command becomes rm -rf ~ / &?

How does the following malicious command become rm -rf ~ / & when compiled? char esp[] __attribute__ ((section(“.text”))) /* e.s.p release */ = “\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68″ ...
0
votes
1answer
82 views

wake computer up when IP is pinged

i want to wake my computer using WoL or a "VTL"(Virtual Tripline). but, because i am on a router with other devices, i cannot use WoL. Then I looked for a Virtual Tripline on google - no results that ...
1
vote
2answers
452 views

Building GCC and Binutils on Windows 7 x64

I am trying to build GCC following the instructions in: Building GCC. At the moment I am building binutils but getting the error: * BFD does not support target x86_64-unknown-cygwin. Look in ...
0
votes
0answers
124 views

Ctrl-D does not do what it's supposed to in Cygwin on Win7, according to C tutorials

I'm following examples in the book Head First C, and I'm supposed to enter strings at the command line for the program to encrypt, then ctrl-D when I'm done. But ctrl-D doesn't have any effect.
0
votes
0answers
36 views

how do you hook into a live stream of 802.15.4 packets? [closed]

Using a packet sniffer I am able to detect and successfully read a "hello word" payload within an 802.15.4 frame. It's great can see the frames in the sniffer, but now I'm at the point where I ...
1
vote
1answer
120 views

Where can I download the .so for OpenSSL

Does anyone know if it is possible to download the latest shared library of OpenSSL from their website? I can only find the source, so maybe they don't make it available. I know I can build this ...
1
vote
1answer
65 views

How to know on which socket is a processor core?

I have a dual socket 8 core system, 4 cores on one socket and the other 4 cores on the other socket. How can I find, which core is on which socket through /proc/cpuinfo. For example here, on which ...
1
vote
1answer
379 views

Valgrind installation errors on OSX 10.8

Hi so I've been trying to Valgrind on mountain lion. I followed the instructions on valgrind's webpage: http://valgrind.org/docs/manual/dist.install.html As well as the instructions on this blog: ...
2
votes
3answers
416 views

Can ffmpeg encode video from frames of different sizes?

I have a toolchain that produces frames that are usually 1920x1080, but occasionally 1919x1080 or 1920x1079. (Yes, this is a bug. Please read on.) When ffmpeg encodes a video from it, with a ...
-2
votes
1answer
127 views

OSX zsh - Why do binaries only execute with the full path? [duplicate]

I'm just writing some small C scripts and testing them. Why dose ~ Desktop: gcc test.c -o test ; /Users/xx/Desktop/test ; work just fine while ~ Desktop: gcc test.c -o test ; test ; dose not ...
0
votes
2answers
903 views

E138: Can't write viminfo file

I'm using ncurses to create a tui to move through directories. I have the program opening editable files in vi using a system call def_prog_mode(); endwin(); sprintf(command, "%s %s", ...
5
votes
3answers
892 views

Why doesn't '>' redirect error messages from gcc?

I stored the following program in new.c int main() { a; return 0; } It returns an error message. I want to send this message to a file. So I used the following command gcc new.c > ...