Thread: Linker error

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    36

    Linker error

    My program compiles fine, but I get this when I try to build it using MS VC++:

    Code:
    main.obj : error LNK2001: unresolved external symbol "double __cdecl coordinates::distancePoint2D(double,struct coordinates::coordinates *)" (?distancePoint2D@coordinates@@YANNPAU11@@Z)
    I have a namespace coordinates and a struct coordinates.

    This is a function I have which seems to be causing the error:
    Code:
    double distancePoint2D(double dDistance, Point2D *point);
    Any ideas?

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    That means it can't find wherever you actually implemented the function

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    36
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. Crazy errors caused by class, never seen before..
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 11:54 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM