Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Help with error LNK2001: unresolved external symbol

  • 17-02-2012 08:46PM
    #1
    Registered Users, Registered Users 2 Posts: 72 ✭✭


    Try to run a project in Visual C++ 2010, it runs prefectly in Visual C++2008 but when I try to run it Visual C++ 2010 I get these 2 errors:

    learning.def : error LNK2001: unresolved external symbol message
    .\Release/learning.lib : fatal error LNK1120: 1 unresolved externals

    LINK : fatal error LNK1181: cannot open input file 'I:\FYP\torcs-1.3.1\src\libs\learning\Release\learning.lib'

    If anyone could help me I would greatly appreciate it.


Comments

  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    The compiler cannot find the file specified. Is this path valid? I:\FYP\torcs-1.3.1\src\libs\learning\Release\learning.lib

    If not then where is your local copy? Using an I drive looks like it was setup to find libs off a network drive, did you copy the project and take it home? If so you also have to copy all the dependencies and change your local paths.

    In visual studio right click on project -> properties -> configuration -> vc++ directories -> edit library directories to include wherever you keep your libs.

    Setting up c++ linker is a bit of a nightmare for a new person, get someone to help you in person.


Advertisement