0
votes
1answer
24 views

Compiling C code for ARM processor on Ubuntu 12.04

I am compiling my simple "Hello world" C code using the following command: arm-linux-gnueabi-gcc-4.4 test.cpp -o test It generates an error: arm-linux-gnueabi-gcc-4.4: error trying to exec ...
0
votes
0answers
103 views

Cmake fails while configuring OpenCV

I'm trying to buid OpenCV and use it in Qt. I have installed all required packages for OpenCV and Qt, after that I tried too run cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ...
0
votes
1answer
87 views

How to enable c99 and c11 on gcc?

When I compile the following code it gives compilation error that error: ‘for’ loop initial declarations are only allowed in C99 mode for(int i = 0; i < 5; i++) and to compile your code use ...
1
vote
0answers
29 views

'__FDELT' and '__FDMASK' not declared in this scope (posix_types.h not included)

I'm running Ubuntu 12.04 LTS, 64bit version. I'm getting the following error when compiling a C++ program: ../elements/userlevel/socket.cc:477: error: '__FDELT' was not declared in this scope ...
0
votes
1answer
87 views

Compiling a C file through Gedit extrernal tools

Is there any way to compile and run .c files by using a shortcut key using gedit? I know its possible for java and C++, and I read somewhere that it is possible to do so using scripts in external ...
1
vote
1answer
109 views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
1
vote
2answers
51 views

Compilation Help on Ubuntu 13.10

I have recently gotten into programming this is a small C code I started on. I am using Ubuntu 13.10. int main(int argc, char *argv[]) { puts("Hello world."); return 0; } Whenever I try ...
1
vote
1answer
867 views

Error: ‘strlen’ was not declared in this scope

I am trying to compile several third-party software from source code (i.e. zchaff, argosat) and get errors such as: Error: ‘strlen’ was not declared in this scope Error: ‘strcmp’ was not declared in ...
1
vote
0answers
157 views

How to build and run Concorde and Traveling Salesman Problem? [closed]

I need to use a library that is called Concorde to solve a well known problem called Traveling Salesman Problem. This library is available here I've downloaded and compiled it resulting in two main ...
0
votes
0answers
41 views

C compiling issue : fatal error: conio.h: No such file or directory [duplicate]

When I compile a c program it show : gcc gr.c gr.c:1:18: fatal error: conio.h: No such file or directory compilation terminated.
2
votes
1answer
146 views

How to compile a program from launchpad

I tried looking through the documentation but I couldn't figure it out. make and ./configure don't work so I thought I would ask here. I'm trying to install this ( ...
0
votes
1answer
40 views

Is it possible to define a macro variable through make?

Below is my c code: #include main() { #ifdef HELLO printf(" hello "); #else printf(" else "); #endif } And my Makefiles is: all: gcc uss_main.c -o out ...
1
vote
1answer
169 views

I get compiling error using ROHC and libpcap library [closed]

I am using Ubuntu 12.10 32-bit.In my project I am using ROHC and libpcap library. when I run simple pcap program like- #include <stdio.h> #include <pcap.h> int main(int argc, char ...
-1
votes
1answer
7k views

How to compile a C program that uses math.h?

I am having problems in math.h header file and when I use square root function as in sqrt(d). But my compiler is not supporting this. Please advise me about this problem. My Ubuntu version is 2012.
1
vote
0answers
57 views

Problem with compiling fft using gcc

I have downloaded the source codes of Splash2 from here and i tried to compile fft.c using gcc command on my own machine but i got this error : fft.c:62:28: fatal error: parmacs_config.h: No such ...
0
votes
2answers
789 views

libusb program not compiling

I am trying to compile a program that uses libusb library in Ubuntu 12.04. I have installed the libusb-1.0-0-dev. However when I try to compile a program as below:- #include<usb.h> ...
1
vote
0answers
14 views

curl/types.h file or directory not found [duplicate]

I have a cpp code to compile but while compiling it is showing the error of curl/types.h file or directory not found, compilation error, fatal error. I am using ubuntu 12.10. please help me to fix ...
2
votes
1answer
239 views

Why does compiling C code on Xubuntu fail?

I recently did a fresh OS reinstall - switched from openSUSE to Xubuntu. I had backed up all my scientific data post-processing scripts (written in C or in FORTRAN). Code I had recently used and ...
2
votes
1answer
408 views

How to see the intermediate code on compilation of a C program?

I want to see the intermediate code generated during the compilation of a C program. Using the -S flag, the object code is generated but is there anything to see the .i files, called as intermediate ...
9
votes
1answer
9k views

No acceptable C compiler found in $PATH

I want to install one package named speech_tools-2.1-release.tar.gz. After I run command ./configure in this package, it show me a message: Configure: error: no acceptable C compiler found in $PATH ...
-1
votes
2answers
1k views

To write a batch processing script which runs on bash

How to convert your java program so that it runs as a batch program i.e it can be run like a command in the ubuntu or any linux machine. What is the procedure and what are the steps to follow? ...
2
votes
1answer
93 views

Can i reasonably link in C code to an application managed with quickly?

I'm looking around for a way to program some gui apps in ubuntu 12.04. I ran across the quickly tutorial and the tool looks fantastic. It looks like the primary language you develop with is python, ...
1
vote
1answer
2k views

How to overcome “Permission denied” running C program even after “chmod +x”?

After compiling a C program on Ubuntu 10.10, after executing chmod +x ./a.out, I am still getting bash: ./a.out: Permission denied. How can I run my new executable?
2
votes
1answer
455 views

How can I compile a C program file which I created using the Libre Office editor?

I'm new to Linux and I need some help! I am trying to compile the code taken from this post to the linux-kernel mailing list. I have pasted the file into Libre Office and saved it as pairing_tool.c ...
4
votes
3answers
4k views

Compiling C++ inside a folder in Ubuntu 12.04

I have some question about compiling .cpp inside a folder, it says first.cpp No such file or directory but when I run it in home it compiles. Any settings I might have left out? Thanks. Here's ...
1
vote
0answers
270 views

need help compiling SDL as a windows executable on ubuntu [closed]

I'm trying to compile JumpnBump to run on Windows, from Ubuntu and it's giving me a very hard time. Somebody made a port, that I have to compile myself because I needed to change the controls. There ...
8
votes
5answers
11k views

Where does Ubuntu store its library files?

I want to add my own library to use in c compiling, but don't really know where ubuntu stores it.