Thread: I am getting an error at compile time.

  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    33

    I am getting an error at compile time.

    So I made a library for a whole bunch of functions and when i compile it, it says"Unresolved external symbol_(Name of function here) referenced in function main.

    What does this mean and how can i resolve it? If anyone know's what wrong and how i can fix it please say so. It would be greatly appreciated.

    Thanks,

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You called a bunch of functions that (as far as the linker (not the compiler!) are concerned) don't exist.

    If you believe them to be library functions, specifically math functions, then you may need to add "-lm" to the end of your compile command. If they are functions that you wrote, then you need to make sure your compile command contains all the .c files that are in your project. Otherwise provide more info.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. compile time error
    By kapil1089thekin in forum C++ Programming
    Replies: 4
    Last Post: 09-01-2010, 12:29 PM
  2. compile time error or runtime error?
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 05-07-2008, 07:08 AM
  3. compile time error in example program
    By dragonlady in forum Windows Programming
    Replies: 3
    Last Post: 01-01-2006, 01:44 PM
  4. Compile time error
    By j_spinto in forum C Programming
    Replies: 31
    Last Post: 05-06-2005, 10:41 AM
  5. compile time error...
    By Ruchikar in forum C++ Programming
    Replies: 7
    Last Post: 07-09-2002, 02:51 AM