Sponsored Content
Top Forums Programming How to compile and run C++ programs in UNIX environment? Post 22027 by hufs375 on Monday 27th of May 2002 09:11:03 AM
Old 05-27-2002
-> To compile after saving and exiting the program(ESC :wq)
at command prompt the command is CC <filename>
(Your filename needs to have an extension .C)

->To run the program at command prompt you need to type
./a.out.

->To compile and run without closing your program
it is (ESC) :!CC % and (ESC) :!./a.out
 

10 More Discussions You Might Find Interesting

1. Programming

How to Compile programs using cc??

How do you Compile programs using cc?? I'm lost. Do I need to buy C or what? I'm only going to use it very few times a year. From what everyone seems to be telling me, it sounds like it is build into the Unix system but I'm having no luck. Please help or just point me in the right direction. ... (7 Replies)
Discussion started by: spotanddot
7 Replies

2. Programming

I have not c compile environment ,i can download it but it ends with *.gz,so i can't

I need for help . (1 Reply)
Discussion started by: dsun5
1 Replies

3. Programming

How to compile pro*c, C programs

Hi, How to precompile the c program which has proc statements within it. If it is only c, I will use the following cmd cc filename.c -o output so please tell me what command I have to use for precompilation. I beleave that this is not an oracle or proc forum, but still I hope will... (1 Reply)
Discussion started by: sweta
1 Replies

4. UNIX for Dummies Questions & Answers

compile .exe, run in unix.

Hi all, I am using putty to access my school unix servers. I have recently downloaded a source file of a software in .tar format. I change the code of the program and compile it in VS8 and build an .exe file. 1) I copy the .exe file to my school account but I could not make it work. How... (2 Replies)
Discussion started by: hkullana
2 Replies

5. Solaris

how to compile and run java programs

Hi, I have installed Solaris 10 on a VMware. How to compile a java program as there is no javac in 'bin' directory. Thanks in advance for answers and sorry if the question is soo basic. (3 Replies)
Discussion started by: mayahari
3 Replies

6. UNIX for Advanced & Expert Users

cannot run c compiled programs

iam in the way of making graphics using SDL.i copied from cd usign mount -a /cdrom cd /cdrom cp SDL-1.2.11.tar.gz /usr/test cd /usr/test gunzip SDL-1.2.11.tar.gz tar -xf SDL-1.2.11.tar cd SDL-1.2.11 ./configure ... ... it stops at checking whether the c compiler... (4 Replies)
Discussion started by: kumarangopi
4 Replies

7. Programming

Makefile includes and shell environment during compile

Below is the top of my Makefile. On one machine, I have mysql_config5, and another, I have mysql_config. In my .bashrc file of one UNIX machine, I added an alias so that that mysql_config5 is mysql_config, however, when I do make, it doesn't use that environment and I get compile errors, unless I... (1 Reply)
Discussion started by: pyramation
1 Replies

8. UNIX for Dummies Questions & Answers

How to access/run c programs on Putty?

Hi all, I wrote a couple noobie programs and had them compiled over Putty (using gcc), but I don't know what command I should use to run them. Please assume that I'm a complete noob when it comes to programming and putty commands. Thank you for your help! (1 Reply)
Discussion started by: Recycalable
1 Replies

9. UNIX for Dummies Questions & Answers

how to run two unix/linux programs on two different cpu cores

Hi folks, I want to know how to run two unix programs on two different cpu cores on a 2-core or 4-core or 8-core CPU machine? Extending this how would i run four and eight unix programs on 4-core and 8-core machine respectively? If this can be done, how to know which program is assigned to... (1 Reply)
Discussion started by: kaaliakahn
1 Replies

10. UNIX for Dummies Questions & Answers

How to compile and run java in UNIX?

Hi Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin In order to compile the java prog im typing the following command after entering into the bin directory: C:\Program... (2 Replies)
Discussion started by: ak3141
2 Replies
ICECREAM 
DAEMON(1) Icecream User's Manual ICECREAM DAEMON(1) NAME
iceccd - Icecream daemon SYNOPSIS
iceccd [-n netname] [-m max_processes] [--no-remote] [-w] [-d | --daemonize] [-l logfile] [-s schedulerhost] [-v [v [v]]] [-r | --run-as-user] [-b env-basedir] [-u | --nobody-uid nobodyuid] [--cache-limit MB] [-N hostname] DESCRIPTION
The Icecream daemon has to run on all nodes being part of the Icecream compile cluster. It receives compile jobs and executes them in a ch- root environment. The compile clients send their compile environment the first time they send a job to a particular daemon, so that the en- vironment of the daemon doesn't have to match the one of the client. The daemon also has to run on clients sending compile jobs to the Icecream network. If a node should be able to send compile jobs, but nev- er receive any, start the daemon with the option -m 0. All Icecream daemons need to have contact to the Icecream scheduler which controls the distribution of data between compile nodes. Normally the daemon will automatically find the right scheduler. If this is not the case you can explicitly specify the name of the Icecream network and the host running the scheduler. OPTIONS
-n netname The name of the icecream network the daemon should connect to. There has to be a scheduler running for the network under the same network name. -m max_processes Maximum number of compile jobs started in parallel on machine running the daemon. --no-remote Prevents jobs from other nodes being scheduled on this one. -w -d, --daemonize Detach daemon from shell. -l logfile Name of file where log output is written to. -s scheduler_host Name of host running the scheduler for the network the daemon should connect to. This option might help if the scheduler can't broadcast its presence to the clients due to firewall settings or similar reasons. -v, -vv, -vvv Control verbosity of daemon. The more v the more verbose. -r, --run-as-user Force running the daemon with user rights. Usually you will need to run the daemon with root rights. -b env_basedir Base directory for storing compile environments sent to the daemon by the compile clients. -u, --nobody-uid nobodyuid Id of user nobody. This user id is used when the daemon is dropping privileges. --cache-limit MB Maximum size in Mega Bytes of cache used to store compile environments of compile clients. -N hostname The name of the icecream host on the network. SEE ALSO
icecream, scheduler, iceccd, icemon AUTHOR
Cornelius Schumacher Icecream April 21th, 2005 ICECREAM DAEMON(1)
All times are GMT -4. The time now is 11:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy