Sponsored Content
Full Discussion: Compiling Code
Top Forums UNIX for Dummies Questions & Answers Compiling Code Post 302256745 by RossMc on Monday 10th of November 2008 12:56:53 PM
Old 11-10-2008
Compiling Code

Hi i am new to programming im having a bit of a problem i have installed kubuntu on my computer and i have wrote some code but when i go to compile it i get this error in the terminal

ross@ubuntu:~/cp1$ g++ -ansi -pedantic array.cpp -o array
ross@ubuntu:~/cp1$ array
The program 'array' is currently not installed. You can install it by typing:
sudo apt-get install sufary
bash: array: command not found
ross@ubuntu:~/cp1$


usually when i compile it and type array on the uni computers the programme will run but i don't know why it isnt on my kubuntu
 

10 More Discussions You Might Find Interesting

1. Programming

C compiling

I recently loaded SuSE on my intel comp. I am presently taking a walk down memory lane from my days at UofT. I was fiddling round with cc and the gcc compilers. I wrote a basic basic basic program . I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies

2. UNIX for Advanced & Expert Users

re-compiling

I have a problem. How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result. I am pretty sure that I wasn't hacked! ... (5 Replies)
Discussion started by: aViking
5 Replies

3. Programming

Error message of compiling a C code

Hi, Recently I have a C Code and i compile on my pc with gcc -D _t_1 -o a.out test.c It works fine for me on my pc. However, upon transferring the same code on Sun Solaris server, it breaks with the below message:- Undefined first referenced symbol ... (3 Replies)
Discussion started by: ahjiefreak
3 Replies

4. Programming

Compilation error when compiling Pro*C code

I'm running a query similar to the one that I'm describing below -: _______________________________ EXEC SQL INSERT INTO TABLE1 ( C1 ,C2 ,C3 ,C4 ) (SELECT DISTINCT B.V1 ,B.V2 ,( SELECT D.V3 FROM TABLE2 D WHERE D.V3 = C.V4) ,B.V4 FROM TABLE2 B ,TABLE3 C WHERE B.V3 = C.V4) ;... (1 Reply)
Discussion started by: maheshp
1 Replies

5. Windows & DOS: Issues & Discussions

Problem compiling C++ Code in Cygwin

Hello everyone. I just recently installed Cygwin and I am running it under Windows 7. My problem is that I cannot seem to compile any C++ code with g++. I've tried to compile C Code using gcc and that works just fine. But Whenever I try to compile some C++ code, g++ throws a whole bunch of... (6 Replies)
Discussion started by: Anlex
6 Replies

6. Programming

Compiling and running Python code

Hey there, First post here in the Unix forums, but I have used them a lot for research over the last year. Anyways, to why I'm here now: I'm working on a project and I'll be using the AIS Parser SDK by Brian C. Lane (can't post the link, but google that and the first 8 links will be relevant) ... (4 Replies)
Discussion started by: pmd006
4 Replies

7. Programming

Problems compiling code

I am trying to compile some code and getting lot of errors g++ -traditional -Wno-non-template-friend -Wno-deprecated -O3 -DNDEBUG -DREAL=float -DGetREAL=Getfloat -IbaseLib -Itommy -Iothers ./source/main/RayTrac.cc -o raytrac ./source/main/RayTrac.cc:36:20: error: gendef.h: No such file or... (1 Reply)
Discussion started by: kristinu
1 Replies

8. Programming

Compiling C++ code with NetCDF libraries: "undefined reference"

Hi! I am trying to compile a C++ code with cmake and gcc on Ubuntu. The code uses NetCDF4 libraries. I specify the path to these libraries as follows: -I/usr/local/include -L/usr/local/lib -lnetcdf -lnetcdf_c++4 "ccmake" and "cmake" work fine. After typing "make" I receive the error... (0 Replies)
Discussion started by: Alauda
0 Replies

9. Shell Programming and Scripting

Compiling source code issue

Need assistance in compile a source code with PERL flags Compile source code CDFconvert-2.2.3 which requires Fortran 90,Perl interpreter , Perl/TK module , NetCDF library , Gempak I have all the above required libraries . Issue is when compiling the source code it looks for local... (4 Replies)
Discussion started by: ajayram_arya
4 Replies

10. UNIX for Dummies Questions & Answers

CPT test exam compiling code

Hello all I am new to programming and trying to compile this code #include <asm/unistd.h> #include <sys/mman.h> #include <unistd.h> #include <errno.h> #define MREMAP_MAYMOVE 1 #define MREMAP_FIXED 2 #define __NR_real_mremap __NR_mremap static inline _syscall5( void *,... (2 Replies)
Discussion started by: crustymonkey
2 Replies
GERMINATE-UPDATE-METAPACKAGE(1) 			  Ubuntu General Commands Manual			   GERMINATE-UPDATE-METAPACKAGE(1)

NAME
germinate-update-metapackage -- update a set of metapackages generated from seeds SYNOPSIS
germinate-update-metapackage [--bzr] [--output-directory dir] [dist] DESCRIPTION
germinate-update-metapackage assists with the construction and update of ``metapackages'' (packages consisting solely of a list of dependen- cies) from a list of seed packages. It updates binary package stanzas in debian/control to reflect the current contents of the seeds, and updates debian/changelog with a description of the changes it made. germinate-update-metapackage requires a configuration file, called update.cfg, in the current directory. The format is described below. If a non-option argument is given, it specifies the distribution for which metapackages should be generated (e.g. ``unstable''). OPTIONS
--nodch Don't modify debian/changelog. --bzr Check out seeds from the bzr branch defined in the configuration file rather than fetching them directly from the URL defined there. Requires bzr to be installed. -o, --output-directory dir Output the package lists in the specified directory. CONFIGURATION FILE
update.cfg uses Python's ConfigParser configuration file syntax, supporting interpolation as defined by SafeConfigParser. It should have a DEFAULT section with a dist key indicating the default distribution, and a dist section (corresponding to that distribution). It may also have a dist/bzr section which can override the seed_base and seed_dist values from the dist section if the --bzr option is given. The fol- lowing keys are recognised in distribution sections: seeds (mandatory) Pass these seeds to the germinator for processing. output_seeds (optional, deprecated) Generate metapackages for these seeds. If not specified, the value of seeds is used. This option is usually no longer necessary now that the value of seeds is automatically expanded for seed inheritance. architectures (mandatory) Generate metapackages for these architectures. archive_base/default (optional) Use this URL as the default base for fetching package indices from the archive; for examples of valid URLs, see deb lines in /etc/apt/sources.list, or the MIRROR argument to debootstrap(8). archive_base/arch (optional) Use this URL as the base for fetching package indices from the archive for the specified architecture. For each architecture being processed, at least one of archive_base/default and archive_base/arch must be present. To try multiple URLs, separate them with commas or spaces; the newest version of each package across all archives will win. Note that debootstrap(8) will only use the first archive. seed_base (mandatory) The base URL for fetching seeds. To try multiple URLs (for example if a seed branch includes another branch stored at a different location), separate them with commas or spaces. seed_dist (optional) The tail of the URL for fetching seeds. This will be appended to seed_base. You will often want to interpolate the value of dist into this value using ConfigParser's %(dist)s syntax. If not specified, the value of dist is used. components (mandatory) The archive components from which to fetch package indices. seed_map/seed (optional, deprecated) The seeds to be used as input for the metapackage corresponding to seed. If specified, this will typically be the list of seeds from which seed inherits, plus seed itself. This option is usually no longer necessary; use a Task-Seeds header in the seed file instead. metapackage_map/seed (optional, deprecated) The metapackage name to output for seed. If not specified, germinate-update-metapackage will look for the name of the source package in which it is being run, remove "meta" from the end, and append the seed name. This option is usually no longer necessary; use a Task-Metapackage header in the seed file instead. EXAMPLE
At the time of writing, the following configuration file is used to generate the kubuntu-meta source package in the Ubuntu archive: [DEFAULT] dist: precise [precise] seeds: desktop full architectures: i386 amd64 powerpc armel seed_base: http://people.canonical.com/~ubuntu-archive/seeds/ seed_dist: kubuntu.%(dist)s archive_base/default: http://archive.ubuntu.com/ubuntu/ archive_base/ports: http://ports.ubuntu.com/ubuntu-ports/ archive_base/powerpc: %(archive_base/ports)s archive_base/armel: %(archive_base/ports)s components: main restricted [precise/bzr] seed_base: bzr+ssh://bazaar.launchpad.net/~kubuntu-dev/ubuntu-seeds/ bzr+ssh://bazaar.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/ seed_dist: kubuntu.%(dist)s AUTHORS
Gustavo Franco <stratus@debian.org> Colin Watson <cjwatson@canonical.com> germinate-update-metapackage is copyright (C) 2004, 2005, 2006, 2007, 2008 Canonical Ltd. and copyright (C) 2006 Gustavo Franco. See the GNU General Public License version 2 or later for copying conditions. A copy of the GNU General Public License is available in /usr/share/common-licenses/GPL. Ubuntu Jul 18, 2007 Ubuntu
All times are GMT -4. The time now is 03:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy