Linker issues....

This is a discussion on Linker issues.... within the C++ Programming forums, part of the General Programming Boards category; I have a linker issue. I'm just working on building a simple hello world project from three different projects. One ...

  1. #1
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101

    Linker issues....

    I have a linker issue. I'm just working on building a simple hello world project from three different projects. One is a .lib, the other is a .dll, and an .exe. They are build except the .exe...which is throwing a external reference error. Then when in the Linker -> General.... I add additional dependencies with johnpaul.lib and georgeringo.dll....then it says it cannot find them....

    Does anyone have a clue as to how to solve a problem like this? If you need specific error messages I can rebuild it and send em' all over.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    If it can't find them, you have to help it find them. There is an option for additional library directories.

    Also, I believe even though georgeringo is a dll, you should still link to its lib.

  3. #3
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101
    Like I said I added them to the additional library directories

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    There are two properties that you need to set. One is the directories where the libs are located which you specify under Linker->General->Additional Library Directories. The second is the names of the libs which you should place under Linker->Input->Additional Dependencies.

    BTW, I assume you are using VC++ 7.1 or 8.0?

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    519
    please send the terminal output of the build process. without seeing it we can only look in our glass sphere to help you

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker problem... no idea
    By cyreon in forum C Programming
    Replies: 2
    Last Post: 04-03-2009, 03:53 PM
  2. linker 2019 issues
    By werdy666 in forum C++ Programming
    Replies: 3
    Last Post: 02-25-2009, 04:12 AM
  3. linker
    By George2 in forum C++ Programming
    Replies: 6
    Last Post: 02-23-2008, 01:25 AM
  4. Linker errors in VC++ 2005
    By C+/- in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2007, 08:42 AM
  5. Linker errors when compiling
    By The Wazaa in forum C++ Programming
    Replies: 4
    Last Post: 10-07-2006, 01:55 PM

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