Results 1 to 3 of 3

Thread: Linker Can't Find Exp() from Math.h

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    304

    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?

  2. #2
    Addicted Member Kal-El's Avatar
    Join Date
    Jun 2007
    Location
    Fortress of solitude
    Posts
    179

    Re: Linker Can't Find Exp() from Math.h

    What compiler are you using?

    «Source Code»«plugins»«skin»«fav apps»«Winamp en español»«Nsis en español»
    So what if your signature move is driving a tractor? I think it's adorable. - Lois ("Crimson")
    Don't forget to when your question is resolved ...and the people who help

  3. #3
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    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.
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width