Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. error LNK2019

error LNK2019

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LCI
    wrote on last edited by
    #1

    Where do i start when figuring out an error LNK2019: unresolved external symbol ? I defined a function that returns a map std::map getMyMap Whenever i try to call this function, getMyMap, i get the error.

    N 1 Reply Last reply
    0
    • L LCI

      Where do i start when figuring out an error LNK2019: unresolved external symbol ? I defined a function that returns a map std::map getMyMap Whenever i try to call this function, getMyMap, i get the error.

      N Offline
      N Offline
      NrmMyth
      wrote on last edited by
      #2

      LCI wrote:

      Where do i start when figuring out an error LNK2019: unresolved external symbol ?

      MSDN...? It seems that the definition of getMyMap can't be found, if it's in another file make sure that you are linking with it.

      L 1 Reply Last reply
      0
      • N NrmMyth

        LCI wrote:

        Where do i start when figuring out an error LNK2019: unresolved external symbol ?

        MSDN...? It seems that the definition of getMyMap can't be found, if it's in another file make sure that you are linking with it.

        L Offline
        L Offline
        LCI
        wrote on last edited by
        #3

        It is all in the same class.. The definition was made in the .h file and the function is in the .cpp and it is also being called from there...

        L 1 Reply Last reply
        0
        • L LCI

          It is all in the same class.. The definition was made in the .h file and the function is in the .cpp and it is also being called from there...

          L Offline
          L Offline
          LCI
          wrote on last edited by
          #4

          Found the problem.. it was my fault. The defintion in the .cpp was without the class identifier. Silly me... Sorry

          N 1 Reply Last reply
          0
          • L LCI

            Found the problem.. it was my fault. The defintion in the .cpp was without the class identifier. Silly me... Sorry

            N Offline
            N Offline
            NrmMyth
            wrote on last edited by
            #5

            well... don't know what to say

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups