On Thu, 10 Aug 2000, Jesse Marlin wrote:

>You mentioned using c++.  gcc is the C compiler and g++ is the C++ compiler.
>Since you have files with .c extension then I assume you are doing C.  So
>you would want to try:
>
>to compile:
>gcc -c -o blabla.o blabla.c
>
>to link:
>gcc -o blabla blabla.o
>
>You can combine these two steps into one, but I can't recall the syntax
>right now.

Simple:

gcc -o blabla blabla.c


gcc will use the C++ compiler if the source file extension is:

.C
.cxx
.c++
.cc

It is in the info documentation.  Or you can explicitly call g++.

TTYL

--
Mike A. Harris  |  Computer Consultant  |  Capslock Consulting
Linux Advocate  |  Open Source Advocate |  Red Hat Linux Fanatic
Want to run Microsoft Windows software in Linux?  You can!  VMware allows 
you to install and run other operating systems inside a window in X windows.
You can install Windows 95/98/NT/2000, FreeBSD, Solaris, and many more.
3D Games do not work yet, but virtually all office and productivity software
runs excellent.           http://www.vmware.com



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to