Sponsored Content
Full Discussion: compile C under linux?
Top Forums Programming compile C under linux? Post 7212 by rwb1959 on Thursday 20th of September 2001 10:26:18 PM
Old 09-20-2001
I'm not sure why your resulting "a.out" file is
ending up in /usr/bin BUT... normally you would
have to be a priviledged user (i.e. root) to
be able to write into that directory. I would
strongly recommend that you DO NOT experiment
with writing and compiling programs as root
(or any other priviledged user). Login to your
system as an ordinary user to do this sort of
thing.

On directing the compiler, try the "-o" option
to generate your executable...

gcc -o hello hello.c

...will compile the C program "hello.c" and will
create an executable file called "hello" in
the current working directory.
 

10 More Discussions You Might Find Interesting

1. Programming

Compile freeBSD binaries in Linux

I have to compile some c-programm as a binary for freeBSD, but I have no possibility to install and work with freeBSD itself - can I compile the needed bninaries in other OSes (Linux or Windows)??? (0 Replies)
Discussion started by: shalmoo
0 Replies

2. SuSE

How do I compile source undfer Suse Linux?

I've been usuing Suse 9.1 & 10 on 2 different machines for a while and have so far relied on ready compiled versions of programs in RPMs in order to install them. I'm unclear what is envolved in compiling from the source code myself. I did a general google on the topic and found some unclear... (3 Replies)
Discussion started by: Mark Ward
3 Replies

3. UNIX for Dummies Questions & Answers

how to compile linux kernel on redhat

Hello, Please let me know how to compile a linux kernel on redhat. I am relatively new in this area so please be a little patient with me. Here is the file I was consulting with the following details: Compiling the Linux Kernel on Redhat 7.1 This page describes how to install... (2 Replies)
Discussion started by: bhattbonny
2 Replies

4. UNIX for Dummies Questions & Answers

Compile C++ under linux, need help

I am a Linux noob, and have been trying to compile some source in Linux and I am lost. I am a game modder and I have some open source code which I have compiled in windows a million times but now I need to compile in Linux. If this thread fails to help me, I will credit anyone who can... (4 Replies)
Discussion started by: fire_noob
4 Replies

5. UNIX for Dummies Questions & Answers

HoHow to compile Linux dialog - "curses.h" missing ?

Hi, I tried native compile Linux dialog for Linux embedded device and got "curses.h" error message. As Linux dialog is already compiled and working as Debian .deb package (installed it). What is a way to import curses.h from other package sources to work for dialog sources compilation in my... (2 Replies)
Discussion started by: darius2
2 Replies

6. UNIX for Dummies Questions & Answers

Trying to native compile Linux Dialog

Hi, as my thread has been moved to Debian. I don't run Debian machine. My machine is Linux embedded router - mipsel. Sources come from Debian, but Dialog sources are GNU, so no Debian specific. Native compilation vs. crosscompilation, exactly to let you know, that I don't run Debian... (2 Replies)
Discussion started by: jack2
2 Replies

7. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

8. Linux

Request: Compile Earlier Version of XTIDE and upload XTTPD binary on 64 bit Linux

Can someone try to compile this older version of xtide (attached) on 64-bit Intel/Linux and upload the xttpd binary? I have a friend who needs an older version up and running because the newer version does not support his required harmonic files. Thanks! (7 Replies)
Discussion started by: Neo
7 Replies

9. Programming

Linux 11.2 to 10.2 Proc Compile error

I am trying to compile a proc++ program on linux using an 11.2 client and pointing to a 10.2 database running on Solaris. The compiler is able to connect to the database but the semantic checks fail as if it cannot see any objects in the database. I tried a test, only selecting 'X' into a... (0 Replies)
Discussion started by: rdudash
0 Replies

10. UNIX for Dummies Questions & Answers

can i get UNIX kernel and compile it like Linux ?

I am not a newbie to Linux, i have been using Linux as my desktop for 4 years, but i am just an end user to Linux, no advanced knowledge to it. I knew that, i can download generic linux kernel and compile it by myself, but how about Unix? how can i get an Unix kernel and compile it ? or no this... (5 Replies)
Discussion started by: wong.sie.ung
5 Replies
FORTRAN(1)							   User Commands							FORTRAN(1)

NAME
Fortran - Reports statistics regarding an HDF5 file and the objects in the file. DESCRIPTION
usage: h5fc [OPTIONS] <compile line> OPTIONS: -help This help message. -echo Show all the shell commands executed -prefix=DIR Prefix directory to find HDF5 lib/ and include/ subdirectories [default: /usr] -show Show the commands without executing them -showconfig Show the HDF5 library configuration summary -shlib Compile with shared HDF5 libraries -noshlib Compile with static HDF5 libraries [default] <compile line> - the normal compile line options for your compiler. h5fc uses the same compiler you used to compile HDF5. Check with your compiler's man pages for more information on which options are needed. You can override the compiler and linker to compile your program by setting the following environment variables accordingly: HDF5_FC - use a different Fortran 90 or 95 compiler HDF5_FLINKER - use a different linker HDF5_USE_SHLIB=[yes|no] - use shared or static version of the HDF5 library [default: no] You can also add or change paths and flags to the compile line using the following environment varibles or by assigning them to their counterparts in the 'Things You Can Modify to Override...' section of h5fc Variable Current value to be replaced HDF5_FFLAGS "" HDF5_LDFLAGS "" HDF5_LIBS "" Note that adding library paths to HDF5_LDFLAGS where another hdf5 version is located may link your program with that other hdf5 library version. COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING SEE ALSO
The full documentation for Fortran is maintained as a Texinfo manual. If the info and Fortran programs are properly installed at your site, the command info Fortran should give you access to the complete manual. Fortran (Debian 4.6.1-4) 4.6.1 August 2011 FORTRAN(1)
All times are GMT -4. The time now is 07:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy