-
how to compile?
hi!
how do i compile a *.c file name ie monitor.c?
i open it with the editor, write a source code in it but my problem is:
what do i have to enter in the console to compile and run the program written?
thanks bye threadhead
-
RTFM
The M that you need to FR is
the command is
> gcc -o executablename whatever.c
for c++ it's
> g++ -o executablename whatever.cpp
have fun...
------------
"One World, One web, One Program"
- Microsoft
"Ein Volk, Ein Reich, Ein Fuhrer"
- Hitler
-
when i type:
man gcc linux replies with 'there is no existing manual entry for gcc'
do you know where i can get such entry?
thanks bye threadhead
-
You need to install GCC. What distro are you using?
-
You may like to do a "cc" without quotes too.
cc -- ansi C Compiler driver
gcc -- GNU C Compiler
-
i am using the suse 8.0 professional distribution.
thanks for the help buw how do i install the gcc?
from cd?
-
You would install it with rpm: rpm -Uvh filename.rpm
-
ok that sounds good
do you know where i can get this for suse 8.0?
bye threadhead
-
Read the SuSE manual, the part that talks about installing software with YaST or YaST2. B/c suse has many cd's rpm does not really work.
------------
"One World, One web, One Program"
- Microsoft
"Ein Volk, Ein Reich, Ein Fuhrer"
- Hitler
-
tar -zxvf <filename>
cd /path/to/files
./configure
make
make install
Hold on! It's a proper compiling question. Cool
mrBen "Carpe Aptenodytes"
Linux User #216794
My blog page
3rd year running - get yourself to LugRadio Live 7th-8th July 2007, Wolverhampton, UK. The premier FLOSS community event.
-
kinda proper
thanks for all the help dudes!
bye threadhead
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|