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. Linker error 2001 very urgent

Linker error 2001 very urgent

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingquestionannouncement
3 Posts 3 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.
  • U Offline
    U Offline
    uday kiran janaswamy
    wrote on last edited by
    #1

    hi all, i have strucked with linker error 2001 : unresloved external symbol "__declspec(dllimport)". this is not comming when the it is in debug mode but this is comming in the release mode only. what is the error pls help me out. Uday kiran

    A P 2 Replies Last reply
    0
    • U uday kiran janaswamy

      hi all, i have strucked with linker error 2001 : unresloved external symbol "__declspec(dllimport)". this is not comming when the it is in debug mode but this is comming in the release mode only. what is the error pls help me out. Uday kiran

      A Offline
      A Offline
      Aamir Butt
      wrote on last edited by
      #2

      In the project configuration, switch to release and add the libs which u added in Linker->input in debug mode.

      "Some people believe football is a matter of life and death. I'm very disappointed with that attitude. I can assure you it is much, much more important than that. -- Bill Shankly"

      1 Reply Last reply
      0
      • U uday kiran janaswamy

        hi all, i have strucked with linker error 2001 : unresloved external symbol "__declspec(dllimport)". this is not comming when the it is in debug mode but this is comming in the release mode only. what is the error pls help me out. Uday kiran

        P Offline
        P Offline
        Programm3r
        wrote on last edited by
        #3

        Hi, It's because the debug configuration has the included library under:

        Project->Settings->Link->Object/library modules:

        But the release configuration hasn't ... Follow these steps:

        Project->Settings
        Setting For: All Configurations (Drop Down)
        Include the missing library at:
        object/library modules:

        And compile ... should work fine when :)

        The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :) Programm3r

        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