Visual Studio Linker problem or my problem?

This is a discussion on Visual Studio Linker problem or my problem? within the C Programming forums, part of the General Programming Boards category; I have two C files: driver.c and value.c. Driver has a main method and value.c has the functions that I've ...

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

    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
    Posts
    14,826
    Well, if you don't feel like looking in the MSDN, then you could always just try Google like most people do...er...should.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,656
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 12:55 PM
  3. multiple errors generated by socket headers
    By nocturna_gr in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2007, 05: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21