CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2014
    Posts
    17

    C++ linking error

    I'm having a problem linking in C++
    I have my cpp file named as : XYZ
    I have another header file and a corresponding cpp file which I’m trying to link.

    which I have added in the C/ C++ (General) properties , I have added the path for the location as:

    E:\MY_Plugin\My_Plugin_cutdown\My_Utilities

    In the Linker/General, I ahve defined the location of the release library as below

    E:\MY_Plugin\My_Plugin_cutdown\x64\Release

    And in the linker properties as

    added the name of the library

    Thermal_Utilities.lib

    When I compile, I get an error (link error)

    "unresolved_external_symbol"

    Can anyone please help?

  2. #2
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ linking error

    Quote Originally Posted by atee View Post

    When I compile, I get an error (link error)

    "unresolved_external_symbol"

    Can anyone please help?

    Are you including header files?

    http://www.codeproject.com/Articles/...-For-Beginners
    ahoodin
    To keep the plot moving, that's why.

  3. #3
    Join Date
    Apr 2014
    Posts
    17

    Re: C++ linking error

    Thanks a lot, this helps.

    I used the example code, it compiles without errors, when I debug, it asks for the executable I should I be using.

    Can you please help and advisewhat exe should I be specifying?

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: C++ linking error

    Missing header files won't generate link errors. You haven't given enough information to get a useful answer. Which symbol is the linker referring to?

  5. #5
    Join Date
    Apr 2014
    Posts
    17

    Re: C++ linking error

    Thanks a lot everyone. The problem is solved. The smaple code was very useful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured