On Thu, Oct 16, 2003 at 01:51:18PM +0800, James Ng Yuen Sum wrote: > Hello, > > 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. http://www.cs.cf.ac.uk/Dave/C/node35.html#SECTION003520000000000000000 cheers James -- -Zero Defect Software Engineers Group - ZDSEG - -Web: http://daisy.ods.org/ -Wiki: http://daisy.ods.org/~prologic/wiki/ -ICQ: 98888663 - -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. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]