Thread: Visual Studio Linker problem or my problem?

  1. #1
    Welcome to the real world
    Join Date
    Feb 2004

    Visual Studio Linker problem or my problem?

    I have two C files: driver.c and value.c. Driver has a main method and value.c has the functions that I've delcared. I'm trying to call one method from the value.c file and I keep getting a "driver.obj : error LNK2001: unresolved external symbol _diskspace" error.

    Obviously it's a problem with the linker, but I cannot figure it out. I know I'm able to do this, but how? Can anybody help me out on this? Thank you.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Well, if you don't feel like looking in the MSDN, then you could always just try Google like most people

    Hope is the first step on the road to disappointment.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Read the manual on diskspace()
    Did you spell it right?
    What sort of programs are allowed to use it (DOS/Console/WinGUI)
    What library is it in.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. DevC++ and Visual Studio problem
    By Etdim in forum C Programming
    Replies: 14
    Last Post: 12-19-2007, 01:55 PM
  3. multiple errors generated by socket headers
    By nocturna_gr in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2007, 06:33 PM
  4. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  5. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 09:04 PM