|
-
Aug 15th, 2007, 07:00 AM
#1
Thread Starter
Hyperactive Member
Linker Can't Find Exp() from Math.h
I am building a DLL to do some bitwise operations and am calling exp() from math.h. Problem is that the linker can't find it. Seems to me like it should be able fo find all ANSI C functions.
Do I need to include a .obj, .lib or .dll to the project so it can link?
-
Aug 20th, 2007, 01:14 PM
#2
Addicted Member
Re: Linker Can't Find Exp() from Math.h
What compiler are you using?
-
Sep 3rd, 2007, 08:19 AM
#3
Re: Linker Can't Find Exp() from Math.h
Not sure about Microsoft C compilers, but if you're using GCC you need the "-lm" commandline switch to link the maths.h header file.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|