General :: Compiling Programs - Steps For Producing Executable

Oct 19, 2010

I'm trying to get my head around compiling programs, and need some things clarified. Can anyone confirm or deny my understanding so far:

1) Program is written in high level language, such as C. File(s) of the program are the 'source code'.
2) Program is then 'compiled' to turn it into low-level code that is both hardware - i.e. Intel/AMD/ARM processor specific, and also Linux distribution specific. This resulting files are called the binaries.
3) I can go from source code to installed and usable program by doing these steps:
./configure
make
make install

View 6 Replies


ADVERTISEMENT

General :: Attribute Is Assigned To Executable Programs That Are Not Carefully Designed"?

May 18, 2011

Does linux kernel 2.6 support suid & guid?. I just read somewhere that "latest linux kernels does not support suid & guid as it can pose a security risk if the setuid attribute is assigned to executable programs that are not carefully designed". I need a confirmation about what I say is correct or if not please correct me.

View 6 Replies View Related

General :: Compiling And Running C Programs

Aug 19, 2010

I am new to C programming and I need a way to compile and run my code. I've made a little research and I found that eclipse is a nice IDE. But I don't know how to configure it and generally. What do I need to download and install to make it work. I've also tried downloading easy eclipse that doesn't need any configuration or extra files but the link on the site was broken. Is there any other C IDE like easy eclipse available?

View 5 Replies View Related

General :: Compiling And Running GTK Programs

Jun 24, 2010

I am trying to study gtk programming and get stucked before some errors in compiling them. Iam using ubuntu 9.10 and i didnt installed any additional libraries or packages for running these gtk programs assuming gtk is already installed in ubuntu. I am newbie to gtk I tried compiling some example programs from my tutorial and it ended up in errors. So do I need any additional packages to run these programs.when compiling it shows package config cannot find any gtk+-2.0 packages and to try specifying .pc in environment path. I don't know how to set these path stuff.

View 1 Replies View Related

General :: Compiling And Installing Programs As Non-root In Home-dir ?

May 31, 2011

I'm trying to compile programs under Solaris in my Home directory.

Ive had experience with simple installs which work with just

But with more involved programs, with dependencies on special libraries, how do I have the system look into my home directory for these? and how would I compile them into my home dir?

View 2 Replies View Related

General :: Compiling 32bit Programs - How To Set Arch Variable

May 21, 2011

I am new to Slackware and I am wondering how you set the ARCH variable. On the multilib wiki page it says:

"Rather than editing the script and change/remove CFLAGS definitions, you can set the ARCH to 'x86_64' and save yourself some time."

So from this I understand that they advise against editing the Slackbuild script. How do I set the ARCH variable on the command line or is it a configuration file I need to edit? I am running Slackware 13.1 64.

View 2 Replies View Related

General :: Compiling Programs - Understanding Concept Of Makefile2

Jan 13, 2011

# Filename: makefile2
# Usage: make-f makefile2
# Description: Maintains all the dependencies between modules using the
# Agenda1.

CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCE_MODULES=main.cpp factorial.cpp hello.cpp
OBJECT_MODULES=$(SOURCE_MODULES:.cpp=.o)
EXECUTABLE=programa1
all: $(OBJECT_MODULES) $(EXECUTABLE)
$(EXECUTABLE): $(OBJECT_MODULES)
$(CC) $(LDFLAGS) $^ -o $@
.o: .cpp
$(CC) $(CFLAGS) $< -o $@

I am suppose to explain the dependencies that exist and each of the following lines of makefile. Lists orders to be executed as a result of running the make utility on it.

View 3 Replies View Related

General :: Compiling Modular Programs - Not Present Directory

Jul 6, 2010

I am trying to write modular program but when I try to compile I come to know I don't have any files in /usr/src/linux. I have installed fedora 12 which has 2.6.31.5-127.fc12.i686.PAE. I am including in my code:

linux/kernel.h
linux/module.h

Those are not present directory in /usr/src/linux is not present. My goal is to compile modular programs.

View 10 Replies View Related

Programming :: Linking And Compiling Multiple C++ Files Into One Executable Program?

Dec 17, 2009

I have 3 c++ files, classdef.h (header file with class definition), methods.cpp (class methods) and program.cpp - the program itself. Both .cpp files have

Code:

#include "classdef.h"

in files. How I can link the files together and compile them in one executable program? I am using Geany IDE for coding.

View 4 Replies View Related

General :: Okular Keeps On Producing Errors On Boot

Feb 3, 2010

I get heaps of errors from Okular saying that /tmp/kde-luke/* cannot be opened. I think it is doing this because I downloaded files from Firefox and opened them then closed firefox before closing the pdf files. I have tried uninstalling a purging Okular deleting the applications stuff in my home directory but it is still obsessed with these files. The only way I have been able to stop these annoying pop ups is by having the application uninstalled or running a starup script that will create these files on boot.

View 2 Replies View Related

General :: Producing A Specific ASCII Character In Ubuntu?

Oct 6, 2010

I'm used to holding the left Alt and entering the ASCII character whenever I'm using an unknown keyboard configuration and want to type a special character. For example, Alt-092 makes a backslash (). That's on Windows. Is there a way to do this in Ubuntu ?

Note : I also want to be able to use this in console mode. That means I don't want a solution involving a software with a GUI.

View 3 Replies View Related

General :: Fatal: Bad Magic Number In Executable `prime' (not An Executable?)

Sep 3, 2010

I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?

fatal: bad magic number in executable `prime' (not an executable?)

View 1 Replies View Related

Ubuntu :: Compiling And Running Some C++ Programs (with G++ From The Terminal)?

Jun 7, 2011

so i've just been sitting here, compiling and running some c++ programs (with g++ from the terminal), I looked away for one minute to open a file that had just been written out (opened it with gedit if that makes a difference), now my terminal says:kbuildsyscoca4 running...so I'm wondering if anyone knows what this is about?hy it suddenly started running and why it has appeared on my terminal. I'm basically just curious as I though bash shells were entirely separate virtualizations of shells, and unrepresentative of other processes. i'm also wondering what kbuildsyscoca4 is/does (i've got gnome going on and generally gnome varieties of programs). I found a post from about a year ago mentioning the same thing, though no replies.

View 1 Replies View Related

Software :: Typing CC Command While Compiling Programs?

Feb 24, 2010

I am doing my project which detects and displays the error message along line number when compiling c programs under Linux. Using gcc command..cc command which we generally use. For which my program must act as a compiler and generate error messages when user program is written and compiled. My idea was to develop a shell script program using name suppose ncc that would be..

$ vi ncc.sh
echo "compiling program $1"
$cc MyPgm.c
$.a/.out
<esc>
:wq
Now user program pgm1.c can be compiled using
$ sh ncc.sh pgm1.c

This will invoke my compiler program. But the thing is how to pass user program pgm1.c as input to my compiler program...

View 2 Replies View Related

Fedora :: Compiling Programs - No Package Libnotify Found

Jul 26, 2011

I want to compile program. "./configure" giving :

Code:
[kuba@Kuba-fedora uget-1.8.0]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executable .....

Configure: error: Package requirements (libnotify) were not met:
No package 'libnotify' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LIBNOTIFY_CFLAGS
and LIBNOTIFY_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. But I have the newest version of libnotify.

View 2 Replies View Related

Ubuntu Security :: Compiling Programs Using OpenSSL Libraries

Mar 30, 2010

I tried to compile C program that uses Openssl libraries on shell but got this error. I guess libraries are not linked properly.
undefined reference to SSL_library_init()

View 1 Replies View Related

Debian :: Crontab Script Is Not Producing Any Output?

Jun 16, 2010

I have created a small script to compile a network weathermap using the cacti RRD files. The script reads the *.conf files and outputs an html and a png file. When I manually run the script it works normally.

I have edited my crontab with the crontab -e command to run this script every minute

The problem is script itself works when I manually call it but when it is run using crontab it doesn't do anything. The cron.log shows that the script IS being run every minute with no errors but the files (html and png) do not get written. What am I doing wrong and how do troubleshoot this?

View 1 Replies View Related

Programming :: Producing Open Source Software ?

Mar 24, 2011

Just a heads up. I just found out about a free online book called Producing Open Source Software. It's great.

I just used a trunk checkout and the directions here to make myself an epub version:

[url]

EDIT AGAIN: don't download the epub version from here:

[url]

If you get it there, then the table of contents doesn't work. Make the epub version yourself, and you have a table of contents.

View 5 Replies View Related

General :: Steps For Using Different IDE's?

Feb 21, 2010

I have installed KDevelop and Eclispe onto my PC which has linux. steps for compiling and running a simple C,C++,Java program in KDevelop and Eclipse

View 1 Replies View Related

Fedora :: Make A Executable (application/x-executable)

Aug 21, 2011

I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).

View 3 Replies View Related

Ubuntu :: Cannot Open An Executable File Because Of Executable Bit?

Jun 20, 2010

I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?

View 3 Replies View Related

General :: How To Get Matchbox And Tell Installation Steps

Apr 28, 2011

i am using classpath-0.98 and jamvm-1.5.4. actually my aim is to develop the touch screens on ARM9 cortex platform. some people suggested me i.e linux matchbox, to implement touch screens and its corresponding operations. how i will get linux matchbox and tell me installation steps.

View 1 Replies View Related

General :: Steps To Perform OS Patching?

Apr 10, 2011

I need to perform patching on some RHEL boxes.
This the first time i am gonna do this. Kindly advise, how and what are the steps i should take to perform the OS patching.

View 6 Replies View Related

General :: Steps To Install Arm - Gcc In Fedora 10?

May 8, 2010

i need steps to install crosss compiler arm-linux-gcc 4.3.2 on fedora 10

View 4 Replies View Related

General :: What Are Necessary Steps To Install And Use Linux

Apr 19, 2011

I believe my Dell laptop at home is sucko full of viruses and malware....been cleaned and recleaned multiple times but seems to just come back.I'd like to start over fresh. I'm thinking I should reformat and wipe the disk clean, and do a fresh Linux install. I have decent computer skills, but wondering if someone could share the basic steps with me....ie

1. if necessary, reformat and partition hard drive.
2. load linux os cd
3. load/install linux windows gui.
4. suggested tools/apps for basic computer use like browser for surfing, office type tools like Word, or Excel, power point. etc.

View 10 Replies View Related

General :: Installation Steps For Wine And Yum In RHEL 5.2?

Jun 21, 2009

I need to knowt the steps to install wine properly on my rhel 5.2 distro. also provide me the proper way to configure yum to update from internet

View 1 Replies View Related

General :: Need Bamboo Server Configurationsn Steps

Oct 14, 2009

I need bamboo server configurations steps. i am using CENTOS 5.3 & netbeans as the development tool.

View 4 Replies View Related

General :: Steps For Configuring DNS Server On RHEL 5.2

Apr 30, 2010

provide me the steps for configuring the DNS server on RHEL 5.2.I did the DNS configuration on RHEL 4.7 it worked fine but as i see in RHEL 5.2 the named.conf file is different and i am confused.

machine ipaddress = 192.168.0.1
Domain name = testing.com

please provide me with the steps on how to edit the named.conf file and zone entries.

View 6 Replies View Related

General :: Install PyPedal But Was Overwhelmed By The Steps?

Dec 29, 2010

I'm trying to install PyPedal but was overwhelmed by the steps. Here is a link to the program:[URL]..The first problem is, on this page [URL].., the package is described as .tar.gz, however when I try to download, the package is a .egg I searched online since I never dealt with a .egg, some suggest to use the unzip command others have used the command without success.

The second problem is, I have to install Python which I have no experience with. This the Python page[URL].all the Linux files seem to be source tarball. What would be the best way to install a source as I have never done this before? The third problem is, which of the third-party extensions used by PyPedal listed in this link I could skip installing [URL].. . All I interested in is getting the numerical result that this program produces. Assume that I have download the PyPedal and Python files to the /home directory.

View 3 Replies View Related

General :: Steps To Install Moodle In Fedora 9

Jun 9, 2010

i have downloaded the moodle zip file and xampp for server.please give me the steps how to install and start running moodle on fedora 9

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved