Re: Newbie about using extern in C.
On Thu, Oct 16, 2003 at 01:51:18PM +0800, James Ng Yuen Sum wrote:
> I am a newbie in using linux and C language. I want to ask how to use
> "extern". In C language, we can have two .c file, in one file the
> variable(s) can be open for other .c file use if extern is the storage
> class of the variable.
> But my teacher has told me that in gcc, I have to use Makefile to do it.
> But I do not know how to do that in gcc.
I suggest you read the following material.
-Zero Defect Software Engineers Group - ZDSEG
-You need only two tools. WD-40 and duct tape.
-If it doesn't move and it should, use WD-40.
-If it moves and shouldn't, use the tape.