Programming :: Handle Own Made Include Files In Order To Compile Program In SUSE 11.3?

May 1, 2011

I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy

View 8 Replies


ADVERTISEMENT

Programming :: Compile C++ Program Without Changing #include Line & Header Files Not System?

Apr 3, 2011

I have C++ source code(*.cpp) files that expects it's header files in System's include folder which is/usr/include.The cpp files has include lines like this:

Code:
#include <some.h>
#include <another.h>

[code]...

View 3 Replies View Related

SUSE :: Compile A Unix Program In Opensuse?

Mar 14, 2009

I have used a new header file named curses.h in my program.when i try to compile my program it shows me the following error "No such path or directory".What may be the problem?A part of the program is shown below

#include<unistd.h>
#include<stdlib.h>
#include<curses.h>

[code]...

View 2 Replies View Related

Programming :: Made A Program In Pascal But Cant Open It ?

Jun 13, 2010

On ubuntu i just compiled my first program using lazarus and i can open it in terminal fine but if i double click the file simply marked 'hello' nothing happens.

Here is the source:

PHP Code:

program Hello;

View 1 Replies View Related

General :: Cannot Compile Java Program In SUSE 11.1 Using Javac

Jun 17, 2010

i just grabed a book and wrote a program and tried to compile it using 'javac' and everytime i'm getting this error:

javac Example.java
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/crt1.o: In function `_start':
/usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'

[Code]....

View 3 Replies View Related

Programming :: (.text+0x7): Undefined Reference - Compiling Program Include One Header File And 2 C

May 21, 2011

i am a new programer in c i have write a simple app and i have a problem with combiling my program include one header file and 2 c

fun.h
#include<stdio.h>
void f();
/******EOF*******/
fun.c
#include"fun.h"
void f(){
[Code].....

View 6 Replies View Related

Programming :: Include - H Files From Dir Inside Dir?

Feb 2, 2011

Basically I have a dir that contains my makefile and another directory inside this called source this holds main source files. External to these I have a couple of dirs common and drives.

In my make file I use

To include the protoypes from the headers in the folders common and drivers used by source, this works fine. However in common and drivers I use a few variables that are set in the source dir. I set these with externs inside the common and driver files. However I'm sure I should be able to set the directory path for source inside my makefile. So say I have inside source hardware.h with prototypes, I set DINCDIR = -I/Source -I../Drivers -I../CommonFiles

Then from a c file inside my common folder I say #include "hardware.h" the file should be able to see hardware.h and it's protoypes. However I get:

Is there some way I can get the extern dirs to see the source dir?

The set out is something like;

View 1 Replies View Related

SUSE / Novell :: Multimedia CD-Rom Made For Windows 95/98/98 SE And 2000 Are Usable With Suse?

Nov 18, 2010

I've got several language multimedia CD-Rom's, made for Windows 95/98/98 SE and 2000, that I'm using by means of my daughter's old PC (Win 98 SE O.S.). However I noticed, also, that you can perfectly use them even with Windows Vista. What I'd like to know is if you can use them even with Suse/Novell and (why not?) OpenSuse Linux.

View 4 Replies View Related

Programming :: Use G++ To Compile QT Program?

Dec 26, 2010

My Fedora 14 have installed gcc-4.5.1-4.fc14.x86_64,qt-4.7.1-5.fc14.x86_64,
I don't know how to use g++ to compile QT program.
Do I need to set PATH or something else?

View 5 Replies View Related

Programming :: Compile A Program With Gtkmozembed?

Apr 21, 2010

i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile

[Code]...

View 1 Replies View Related

Programming :: How To Compile Program For Windows

Feb 10, 2010

I have a c program and its related libraries for Linux. But, I need a EXE file to run in windows.

please let me know how to compile the program for windows

View 8 Replies View Related

Programming :: Handle Files With Spaces In Their Names In Bash?

Apr 1, 2011

*I'm using Ubuntu 10.10

My issue is I can't handle the files with spaces in their name, I've donde the below script to print each file found inside folder and subbfolders with "find".

I would like to "ls" to each file found with its complete path and with its basename too.

Code:
files=$(find . -type f)
for each in "$files"
do
ls -l "$each" # 1rst option I've tried to list with full path
ls -l "$(/bin/echo "$each")" # 2nd option I've tried to list with full path
ls -l "$(/bin/echo $(basename "$each"))" # 1nd option I've tried to list with it basename

[Code].....

How can I list "ls -l" in both cases (with full path and with basename) when there are files with spaces in their name?

View 6 Replies View Related

Programming :: Made A Shell Script To Copy And Delete Files Through FTP?

Feb 13, 2011

I have made a shell script to copy and delete files through FTP.I want to first delete all txt files and then mput all txt files.

Code:
ftp ()
{

[code]....

View 6 Replies View Related

Programming :: C++ Compiler(G++) Comes Up With Error When Try To Compile A Program Using Qt

May 26, 2010

I am using the C++ compiler G++ to compile my programs on Linux Mint 8 - Gnome.

I recently installed QT and when I tried to compile a simple "Hello World!" program it gave me this error:

Quote:

This is the code in HelloWorldQt.cpp:

Code:

I have tried using GTK instead but I get a similar error.

View 7 Replies View Related

Programming :: How To Compile Libipq Sample Program

Feb 26, 2010

I want to capture the ip packets, so i installed

I am getting the following errors.

View 7 Replies View Related

General :: Program Consists Of Header Files, .cpp, .c, \ How To Compile And Run Them?

Aug 12, 2010

I have a program consists of header files, .cpp, .c, a Makefile and need to include the problem instances file (.tim).May i know how to compile and run them? From google, i have heard bout the command make.

View 6 Replies View Related

Red Hat :: Include More Official Repository In Order To Do The Install Via Yum?

Jul 5, 2010

I'm using CentOS 5.5 64-bit. When I do "yum info mysql" or "yum info php" it doesn't list the latest version available. Is there a way for me to include more official repository in order to do the install via yum?

View 1 Replies View Related

Programming :: Can't Get The Character That Have Initialized Used Gcc4.5.2 To Compile Program?

May 21, 2011

I write a small program to learn overflow. But when I input more than 5 characters (exceed the boundaries of the buffer),I can't get the character that I have initialized. I used gcc4.5.2 to compile this program. Then I used gdb to debug it. I found that when I input more than 5 characters, the variable 'test' was set to 0(ASCII code or '00').

[Code]...

View 8 Replies View Related

Programming :: Cross-compile A Program For Openwrt Router?

Nov 15, 2010

I wanted to compile a program for my openwrt router from source i already have but to add an option. I ran ./autogen.sh in the terminal but it returned aclocal not found.

View 5 Replies View Related

Programming :: Compile And Build Program Using A Makefile Template?

Jul 8, 2011

I am new to the whole concept of makefiles, and I'm trying to compile and build my program using a makefile template I have found. My project consists of three directories: "source", where my .cpp files are (source1.cpp, source2.cpp, source3.cpp), "include", where my .h files are (header1.h, header2.h, header3.h), and "obj", where the object files are to be stored (obj1.o, obj2.o, obj3.o). In the project root directory is my makefile, which is as follows:

Code:
EXEC = myexe
CC = g++
IDIR = include
SDIR = source
ODIR = obj

[Code]..

View 4 Replies View Related

Programming :: Python - Call Function From The Command Line After Compile The Program?

Dec 28, 2010

If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?

View 5 Replies View Related

Debian :: Execute Command Mactime In Order To Control Changes Made To The File System?

Apr 23, 2011

I am trying to execute command mactime in order to control changes made to the file system, but I am getting an error. I am running the shell as root, and it is the first time I run the command in this system - Debian Squeeze up to date. The I/O is as follows:

# mactime 3/1/2011
cannot exec /bin/date: No such file or directory
cannot exec /bin/hostname: No such file or directory
cannot exec /bin/uname -n: No such file or directory
Cannot open /var/cache/tct/data/Amnesiac/body: No such file or directory

The first three lines of output are the ones that are worrying at the moment; I am not concerned with the last. Although error messages suggest the programs date, hostname and uname do not exist in /bin directory, they are available as shown by

[Code]...

View 3 Replies View Related

SUSE :: Finding A Program To Burn Avi Files To Dvd?

Oct 27, 2010

i am looking for a linux program to burn some avi files i have to be able to watch them through my dvd player onto my t.v. i have tried devede and it works but the files i used were iso files and i am not sure it would work with a avi filese?

View 7 Replies View Related

Programming :: Convert The XML Output Files To SQL In Order To Create Or Update An SQL Database?

Dec 7, 2010

I've a program which manages my pdf and references. I wish to put some of the information on my website but that program (Mendeley) does export only in XML (or bibtex). I'd like to simply convert the XML output files to SQL in order to create or update an SQL database.I'm not an expert in either XML or SQL (use only PHPMyadmin). Does someone get help me to figure out?

View 2 Replies View Related

Programming :: Multiple Files To Compile By G++?

Jan 12, 2011

how i could compile for example: a tutorial file of cantera open source files. when i do :g++ example.cpp -o examplei get huge errors such as the header files are not here,...please tell me how i could compile it. ofcourse i have configured the full opensources and i see in /usr/local/cantera/binthat the files are there but i still can not compile and execute any cpp file.

View 2 Replies View Related

Programming :: Bash: Rename Files In Alphabetical Order And Make Extensions Uppercase?

Oct 21, 2010

I am trying to write a bash script that will extract a .cbr (.rar) file, traverse the extracted files in alphabetical order and rename them 001.JPG, 002.JPG, 003.JPG, etc.So far I only have this much to extract it:

Code:
#!/bin/bash
#

[code]....

View 8 Replies View Related

Programming :: Compile Shared Object Files Using Valac ?

Oct 20, 2010

What flags do you have to pass to valac to compile code into a shared library (file extension .so)?

View 1 Replies View Related

Programming :: DataBase In Python - Compile .py Files Into A .exe File

Jun 20, 2011

i am new to python programing and i have a couple of ?'s

1- what would i do if i needed to find the closest, bigger number, from a list of numbers when the user types a number in.

2- (windows) i need a program that can compile .py files into a .exe file so that it works on a machine without python it also needs to work with python 3.2.

View 8 Replies View Related

General :: Does Open SUSE Include NTP Server

Jul 2, 2010

I want to setup a NTP server on open SUSE 11.1. But I don't know whether it has been supported in the system, or it needs me to install a software manually.

View 4 Replies View Related

Red Hat / Fedora :: Re-compile The Src In Order To Install?

Jan 17, 2010

I have Atheros AR8132 Ethernet 10/100 and downloaded the drivers but need to re-compile the src in order to install it. after doing step (make install) it says:-

Makefile:61: *** Linux Kernel source not found. Stop. What does this mean?

View 5 Replies View Related







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