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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Receiving a Linker Error

Receiving a Linker Error

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++testingdebuggingbeta-testing
2 Posts 1 Posters 1 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.
  • C Offline
    C Offline
    capricious_001
    wrote on last edited by
    #1

    Hey guys, I am receiving this error in VC++

    testing_project.obj : error LNK2001: unresolved external symbol "bool __cdecl GetRSLocation_Reg(char *)" (?GetRSLocation_Reg@@YA_NPAD@Z)
    C:\testing_project.exe : fatal error LNK1120: 1 unresolved externals

    char * is a typedef for LPSTR These are the libraries I have included in my project: kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib comctl32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Here are my project options

    kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib comctl32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/testing_project.pdb" /debug /machine:I386 /out:"C:\testing_project.exe" /pdbtype:sept

    Anyone know what the problem could be? Thanks in advance! Robbie

    C 1 Reply Last reply
    0
    • C capricious_001

      Hey guys, I am receiving this error in VC++

      testing_project.obj : error LNK2001: unresolved external symbol "bool __cdecl GetRSLocation_Reg(char *)" (?GetRSLocation_Reg@@YA_NPAD@Z)
      C:\testing_project.exe : fatal error LNK1120: 1 unresolved externals

      char * is a typedef for LPSTR These are the libraries I have included in my project: kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib comctl32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Here are my project options

      kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib comctl32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/testing_project.pdb" /debug /machine:I386 /out:"C:\testing_project.exe" /pdbtype:sept

      Anyone know what the problem could be? Thanks in advance! Robbie

      C Offline
      C Offline
      capricious_001
      wrote on last edited by
      #2

      I fixed it! In my function definition parameters, I was passing a value by reference but in my function prototype I wasnt. Sorry my bad lol.

      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