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. Link error 2001

Link error 2001

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 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.
  • J Offline
    J Offline
    jimNLX
    wrote on last edited by
    #1

    "Unresolved external symbol" It's in a dialog app that has some function declared in a C file and then prototyped in a header file. I include the header file in the file I call the function from and that is where I get the error. I have tried a number of things but can't seem to get this to work. Please help! Thanks, Jim

    L 1 Reply Last reply
    0
    • J jimNLX

      "Unresolved external symbol" It's in a dialog app that has some function declared in a C file and then prototyped in a header file. I include the header file in the file I call the function from and that is where I get the error. I have tried a number of things but can't seem to get this to work. Please help! Thanks, Jim

      L Offline
      L Offline
      Larry J Siddens
      wrote on last edited by
      #2

      If the original header file was from the C Programming Language, then you need to add: #ifdef __cplusplus extern "C" { #endif ... function defs... #ifdef __cplusplus } #endif Larry J. Siddens Cornerstone Communications TAME THE DOCUMENT MONSTER www.unifier.biz

      J 1 Reply Last reply
      0
      • L Larry J Siddens

        If the original header file was from the C Programming Language, then you need to add: #ifdef __cplusplus extern "C" { #endif ... function defs... #ifdef __cplusplus } #endif Larry J. Siddens Cornerstone Communications TAME THE DOCUMENT MONSTER www.unifier.biz

        J Offline
        J Offline
        jimNLX
        wrote on last edited by
        #3

        Thanks Larry, worked like a charm

        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