06-16-2003
Your output file is called first. You can run it with "./first".
Use your own good judgement as you view the results.
10 More Discussions You Might Find Interesting
1. Programming
Hi All,
I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ).
Can any body tell the resaon and remedy for the same . Iam stuck up here .
Thanks (3 Replies)
Discussion started by: Vivek
3 Replies
2. Programming
hi
i am having a problem that when ever i use
cc program_name.c
to compile a program. an error occurs, showing cc not found.
please help. (28 Replies)
Discussion started by: rochitsharma
28 Replies
3. Programming
Help
I know nothing about c programming. :confused:
I want to compile the below c program. It extracts data from an oracle database into csv files.
I have oracle 9206 installed with ProC. I dont have gcc
My question is. How the hell do I make this into an file I can run? I am pulling... (3 Replies)
Discussion started by: ooploo
3 Replies
4. Programming
here is the very simple bob.c:
main()
{
printf("hello");
}
i use tiger and i use the command:
gcc bob.c
and the end result:
bob.c: In function ‘main':
bob.c:3: warning: incompatible implicit declaration of built-in function /‘printf'
any help appreciated, i'm just starting... (4 Replies)
Discussion started by: cleansing_flame
4 Replies
5. Programming
if somebody can help me pls.
i need the source code for a shell which compiles C or java programs in unix
i need a very short and simple one, just the compiling part
Respect (2 Replies)
Discussion started by: zlatan005
2 Replies
6. Programming
I use Ubuntu 10.4, and I installed GNUStep, Gorm (a gui builder) and ProjectCenter (the GNU alternative to Xcode) because I want to develop Objective-C apps. I opened the ProjectCenter and I created an application that displays only an empty window. I sourced the GNUstep.sh and I compiled the app. ... (0 Replies)
Discussion started by: mghis
0 Replies
7. Programming
Hello,
I am writing to ask for support about compiling an very old but famous C-progam for genetics study called MapMaker/QTL, and the source code is available from MIT:
http://www.broadinstitute.org/ftp/distribution/software/mapmaker3/The program was originally designed for systems like SunOS... (1 Reply)
Discussion started by: yifangt
1 Replies
8. Programming
Hi Everyone,
I can ask what is the option to compile a 64 bits program using gcc. I have looked everywhere but can't find it. Before I used to use cc and the -q64 flag was the option to generate the 64 bits binary. Can anyone tell me what is the flags when using gcc. Thanks...... (3 Replies)
Discussion started by: arizah
3 Replies
9. UNIX for Advanced & Expert Users
good morning,
I have 64-bit DB2 V9.7 AIX 7.1.0.0
I am compiling a C program, when running cc-I / rutadb2/include-c programa.c this error.
ksh: cc: not found.
how I can check if I have installed the C compiler?
Any help will be greatly appreciated.
Thank you very much and best regards. (2 Replies)
Discussion started by: systemoper
2 Replies
10. UNIX for Dummies Questions & Answers
I am hoping someone can give me a good free web resource for writing code to compile a binary executable. I am getting fairly decent at writing shell script, are the .f files just shell scripts? Also, I don't know where to begin on the makefiles. The reason I am curious is because I have been... (6 Replies)
Discussion started by: butson
6 Replies
BHOST(5) LAM FILE FORMATS BHOST(5)
NAME
bhost - LAM boot schema (host file) format
SYNTAX
#
# comments
#
<machine> [cpu=<cpucount>] [user=<userid>]
<machine> [cpu=<cpucount>] [user=<userid>]
...
DESCRIPTION
A boot schema describes the machines that will combine to form a multicomputer running LAM. It is used by recon(1) to verify initial con-
ditions for running LAM, by lamboot(1) to start LAM, and by lamhalt(1) to terminate LAM (note that wipe(1) has been deprecated by the
lamhalt(1) command).
The particular syntax of a LAM boot schema is sometimes called the "host file" syntax. It is line oriented. One line indicates the name
of a machine, typically the full Internet domain name, an optional number of CPUs available on that machine, and optionally the userid with
which to access it.
Common boot schema for a particular site may be created by the system administrator and placed in the installation directory under etc/.
They typically start with the prefix bhost. Individual users usually create their own boot schema, especially if the configurations are
simple.
EXAMPLE
Here is an example three node boot schema:
#
# example LAM host file
#
beowulf1.nd.edu cpu=2
beowulf2.nd.edu
beowulf2.nd.edu
somewhere.else.college.edu user=guest
Note that the "guest" ID is significant, since the user has an alternate login ID on somewhere.else.college.edu. Additionally note that
beowulf1 has a CPU count of 2 listed (a CPU count of 1 is assumed if it is not given). This value is used by mpirun(1), MPI_Comm_spawn(2),
and MPI_Comm_spawn_multiple(2) for the "C" (or CPU) notation that specifies how many ranks to start. This is particularly useful for run-
ning on SMP machines.
beowulf2 is listed twice, but has no specific CPU count listed. In this case, LAM will keep a running tally of the total number of CPUs
for that host. Hence, LAM will calculate that beowulf2 has two CPUs available for use. Calculating the number of CPUs by counting occu-
rances of a hostname is useful in a batch environment where a hostfile may list the same hostname multiple times, indicating that the batch
scheduler has allocated multiple CPUs for a single job (e.g., PBS operates this way).
For the above-mentioned schema, the command "mpirun C foo" would start five instances of the foo program; two on beowulf1, two on beowulf2,
and one on somewhere.else.
FILES
$LAMHOME/etc/bhost.def default boot schema file
SEE ALSO
lamboot(1), lamhalt(1), mpirun(1), MPI_Comm_spawn(1), MPI_Comm_spawn_multiple(1), recon(1), wipe(1)
LAM 6.5.8 November, 2002 BHOST(5)