Sponsored Content
Full Discussion: Gcc with pipe
Top Forums Programming Gcc with pipe Post 302485650 by achenle on Wednesday 5th of January 2011 09:38:48 PM
Old 01-05-2011
Quote:
Originally Posted by rzili
I want to compile all files in my directory i wrote
find *.c | gcc -o * *.c
but it dosent work Smilie Help pliz
Does gcc even take piped input? I don't think I've ever seen any compiler used that way.

What are you trying to accomplish? Compile a bunch of C files into one executable? There's an even simpler way than the examples DGPickett provided:

Code:
gcc *.c -o yourBinaryFileName

The "*.c" argument is expanded by your shell to every file in your current directory that ends in ".c", no matter what it begins with (as long as it doesn't start with a "." character, anyway), and the "-o" argument tells gcc that the next argument is the name of the file it's to use to write its output to.
 

10 More Discussions You Might Find Interesting

1. Programming

gcc update

Hai Friends How should i update gcc (version 3.2.1) to gcc (version 3.2.2). I am using FreeBSD 5.0 RELEASE Thanks in advance Collins (0 Replies)
Discussion started by: collins
0 Replies

2. Programming

Gcc

Dear all, Any body please guide, i require a C which will run in Linux environment. Its urgent please. warm regards, Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies

3. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

4. AIX

Gcc for AIX

Hi, I am working with AIX5.3 and I downloaded the gcc-4.2.4.tar.bz2 from the site and when I am trying to un-tar it.It is throwing error-- Please help me to resolve it. Thanks in Advance.. (6 Replies)
Discussion started by: smartgupta
6 Replies

5. Programming

gcc compiler

Which gcc compiler release had the Arm 9 multicore support?Whether the compiler that used for the single Arm 9 core can be used for its multicore systems ? If gcc not support,please tell me which are the compilers that are available for Arm 9 multicore systems (including commerical).Whether... (0 Replies)
Discussion started by: sujith4u87
0 Replies

6. UNIX for Dummies Questions & Answers

Help with gcc and g++

Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies

7. UNIX for Dummies Questions & Answers

What is the difference between GCC and CC?

Can anyone briefly tell me the difference between CC and GCC? Thanks! (1 Reply)
Discussion started by: andrewust
1 Replies

8. Shell Programming and Scripting

Replace pipe with Broken Pipe

Hi All , Is there any way to replace the pipe ( | ) with the broken pipe (0xA6) in unix (1 Reply)
Discussion started by: saj
1 Replies

9. Linux

Problems with gcc

Hello I'm not able to install gcc. My platform is # uname -a Linux localhost 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux #yum install gcc I got the following error ---> Package libgfortran44.x86_64 0:4.4.4-13.el5 set to be updated ---> Package... (2 Replies)
Discussion started by: My Style
2 Replies

10. Shell Programming and Scripting

How to ignore Pipe in Pipe delimited file?

Hi guys, I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file for eg: file 1: xx|yy|"xyz|zzz"|zzz|12... using below awk command awk 'BEGIN {FS=OFS="|" } print $3 i would get xyz But i want as : xyz|zzz to consider as whole column... (13 Replies)
Discussion started by: rohit_shinez
13 Replies
NET-COMPILE(8)                                                System Manager's Manual                                               NET-COMPILE(8)

NAME
netscript-compile - netscript ipfilter-defs compile back end. SYNOPSIS
netcript-compile [ -fhq ] [ -b max-backup-level ] DESCRIPTION
This manual page documents briefly the netscript-compile command from the netscript router/firewall network configuration package. This command is the back end to the netscript compile command documented in netscript(8) manpage. See ipfilter-defs(5) for the details on the definitions files in /etc/netscript/ipfilter-defs. By default it checks to see if the relevant files in the /etc/netscript/ipfilter-defs directory have been updated by comparing their modi- fication times to that of /etc/netscript/ipfilter-defs.conf, and if updating is needed, it recompiles and re-creates the file. Up to max- backup-levels of history are kept of previously compiled /etc/netscript/ipfilter-defs.conf files, with a numeric extention in order of increasing age. OPTIONS
-b max-backup-level Sets the maximum level of backups kept of previously compiled files. This defaults to 2 (see /etc/netscript/netscript-com- pile.conf), and it is also used by the netscript(8) compile command. -f Force compile even though compile file is up to date with definitions. The testing depends on the modification times of the defini- tion file inodes in the file system. -h Show a summary of options. -q Quiet compile. This option suppresses informational progress messages. FILES
/etc/netscript/ipfilter-defs.conf, /etc/netscript/ipfilter-defs-compiled.conf, /etc/netscript/ipfilter-defs directory. SEE ALSO
ipfilter-defs(5), netscript(8). AUTHOR
This manual page was written by Matthew Grant <grantma@anathoth.gen.nz>, for the Debian GNU/Linux system (but may be used by others). BUGS
I wrote this manpage when I was not half asleep... March 25, 2003 NET-COMPILE(8)
All times are GMT -4. The time now is 01:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy