Xref: news2.mv.net comp.os.msdos.djgpp:4639 Newsgroups: comp.os.msdos.djgpp From: MISTRY CHETAN Subject: Little problem with compiling Sender: news AT ecf DOT toronto DOT edu (News Administrator) Message-ID: Date: Wed, 5 Jun 1996 16:47:08 GMT Content-Type: TEXT/PLAIN; charset=US-ASCII Mime-Version: 1.0 Organization: University of Toronto, Engineering Computing Facility Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I have a program which uses a few math functions from the include file, and I have the line "#include " in my code, and I compile it with the command "gcc -lm progname.c" ; but I still get an error message something like undefined reference to "pow" (the function I'm using). The program itself works because I tried it on my unix account at school, it just dosn't compile on my PC. I installed gcc, set the environment variables, and modified my path. Am I missing something? ============================================================================= .---. .----------- / \ __ / ------ _/_/_/ _/ _/ _/_/_/ _/_/_/_/_/ / / \(..)/ ----- _/ _/ _/ _/ _/ ////// ' \/ ` --- _/ _/_/_/_/ _/_/ _/ //// / // : : --- _/ _/ _/ _/ _/ // / / /` '-- _/_/_/ _/ _/ _/_/_/ _/ // //..\\ ///'.`\\ email -> mistryc AT ecf DOT utoronto DOT ca ====UU====UU==== '//||\\` "A Canadian is the one who, when stepped ''`` on by someone else in a crowded subway, will be the one to apologize." - Diane Francis =============================================================================