This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to compile a source with "extern"
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Marcelo Custodio <marcelocustodio at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Tue, 08 Mar 2005 09:30:31 -0600
- Subject: Re: How to compile a source with "extern"
- References: <2b0ab802050308070442864465@mail.gmail.com>
Hi Marcelo,
Welcome to the wonderful world of the C programming language. This forum
is for GCC specific issues, and your questions are more related to learning
C than they are GCC in particular -- there are much better forums and
websites devoted to C tutorials and getting started.
teste2.c should not have a main function in it, since that function is in
teste1.c source file.
Compile your source files:
gcc -o myapp teste1.c teste2.c
Run your program:
./myapp
Enjoy,
--Eljay