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

1
vote
2answers
413 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 ...
2
votes
1answer
46 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 ...
2
votes
1answer
92 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 ...
2
votes
1answer
134 views

Environment variable's address is changing?

Don't ask why I am not posting this at Stack. So I have this small C program. It returns the address of the environment variable specified in argv[1]. #include <stdio.h> #include ...
2
votes
1answer
729 views

execvp exec format error for shell script on Red Hat Enterprise Linux 6

We have two RHEL 6 systems that are running identical versions of the kernel and glibc (glibc–2.12–1.90.el6_3.6). According to the POSIX standard and the Linux man pages, if the kernel determines that ...
1
vote
1answer
61 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 ...
1
vote
1answer
4k views

Installing Cygwin C and C++ compilers for NetBeans IDE 7.2

I am very new to Cygwin, C, C++ and NetBeans IDE 7.2. My PC is running MICROSOFT WINDOWS 7 OS. I have read the documentation on how to install the Cygwin C C++ compilers. ...
0
votes
1answer
13 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
1answer
42 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 ...
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
71 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 ...
0
votes
1answer
251 views

Which Package has net_tstamp.h?

I attempted to compile the source code here: http://os1a.cs.columbia.edu/lxr/source/Documentation/networking/timestamping/timestamping.c?a=x86;v=2.6.32 However, I got a compiler error: error: ...
0
votes
1answer
172 views

OSX: Remaining in terminal after C program executes

2nd edit Some clarifying... I wrote a C program that asks for input (in this case, using fgets()). When I compile it into a C executable, I notice this behavior: If I run the executable from the ...
0
votes
1answer
147 views

Makefile support for Tiny C Compiler

I just found the brilliant Tiny C Compiler while searching for a small portable C compiler for Windows (I cannot install anything on this system or copy files to it and so need to compile directly on ...
0
votes
1answer
268 views

Mingw Shell Console Issue

I recently installed MingW/Msys on my XP Pro box (SP 3). When I attempt to open a Mingw shell as a console it behaves incorrectly. The shell window opens for perhaps 5 seconds and then the window ...
0
votes
1answer
447 views

Does stat/lstat on nonexistent file cause a disk seek?

When searching for a library file from a right folder, my application currently does couple of lstat's for the possible locationslocations. Now I'm wondering whether these lstat's (application is ...
0
votes
1answer
832 views

How do I find the installation path of binutils, gcc-3.4.4.tar.gz in Ubuntu?

I have ubuntu 8.10. In this I could find the binutils, gcc are installed. But when ever I try to know that glibc, glibc-linuxthreads are installed are not. It showing that no package is found. For ...
-1
votes
1answer
91 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 ...
1
vote
0answers
491 views

How to add “Read & execute” permission in Windows 7 for file on Samba drive

From a C program I would like to add "Read & execute" permission in Windows 7 for a file on a Samba drive. The "icacls" program is used in example below, but a C library call could also be a ...
1
vote
0answers
315 views

So I stupidly install newlib, and probably overwrote references to glibc. How can I recover glibc?

I forgot to set a make --prefix and I think it wrote to /usr/local/ by default and now I'm having all kinds of errors. I'm on ubuntu natty, what's the easiest way to resurrect glibc. I've tried to ...
0
votes
0answers
17 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
23 views

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

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 ...
0
votes
0answers
47 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
0answers
49 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 ...
0
votes
0answers
12 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
36 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
0answers
49 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
0answers
30 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
0answers
39 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 ...
0
votes
0answers
121 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
275 views

apache httpd libapr linking .a .so

Problem I need to compile and install an Apache module on AIX 6.1. This is the module A. The Apache module is available only as source. I manageg to compile the source and the .so module was ...
0
votes
0answers
255 views

What would cause different rates of packet loss between client and server in UDP?

If I've implemented a reliable UDP file transfer protocol and I have a file that deliberately drops a percentage of packets when I transmit, why would it be more evident that transmission time ...
0
votes
0answers
512 views

Get current thread id in kernel based C code (Linux)

I have a module which is accessed for read/write operations to a proc file. I know I can get current process id using current->pid, but is there a way to get the current thread id that is accessing ...