Mail Archives: djgpp/1996/06/05/23:03:14
Xref: | news2.mv.net comp.os.msdos.djgpp:4639
|
Newsgroups: | comp.os.msdos.djgpp
|
From: | MISTRY CHETAN <mistryc AT ecf DOT toronto DOT edu>
|
Subject: | Little problem with compiling
|
Sender: | news AT ecf DOT toronto DOT edu (News Administrator)
|
Message-ID: | <Pine.SOL.3.91.960605124020.24077A-100000@spark22.ecf>
|
Date: | Wed, 5 Jun 1996 16:47:08 GMT
|
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 <math.h>" 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
=============================================================================
- Raw text -