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 LNK 2001 in visual C++ 6.0

error LNK 2001 in visual C++ 6.0

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
33 Posts 4 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.
  • D David Crow

    sindhumahe wrote:

    found the "buffeoverflowU.lib" in c:\

    Why are there .lib files in the root folder of the C: drive? :wtf:

    "One man's wage rise is another man's price increase." - Harold Wilson

    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

    "Man who follows car will be exhausted." - Confucius

    S Offline
    S Offline
    sindhumahe
    wrote on last edited by
    #21

    i am sorry. i am not sure about this. can u help me to resolve the error. the link u sent doesnt seem to be of much help.

    D 1 Reply Last reply
    0
    • S sindhumahe

      hey i am not able to find that library.. :(

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #22

      Do you compile for x64 ? :) Please remove all additional libs and try to set the only "full pathed" msvcrt.lib from your x64 SDK directory :)

      virtual void BeHappy() = 0;

      S 1 Reply Last reply
      0
      • S sindhumahe

        i am sorry. i am not sure about this. can u help me to resolve the error. the link u sent doesnt seem to be of much help.

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #23

        What part of "The project is missing a reference to a library (.LIB) or object (.OBJ) file" are you not understanding? Did you read the .lib Files as Linker Input link?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        S 1 Reply Last reply
        0
        • D David Crow

          What part of "The project is missing a reference to a library (.LIB) or object (.OBJ) file" are you not understanding? Did you read the .lib Files as Linker Input link?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          S Offline
          S Offline
          sindhumahe
          wrote on last edited by
          #24

          hi, i am facing the following trouble. i have included the path of the libraries ad "tools->options->include files libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol ___security_cookie like this i am facing the problem with four libraries. can u guide me ?

          D 1 Reply Last reply
          0
          • S sindhumahe

            hi, i have a .mak file while has four depencies(libraries- libgroupsock.lib, libusageenvironment.lib,libbasicusageenv.lib and liblivemedia.lib) but on building the .mak file , i am facing the following problem. how to resolve this error. if the libraries are to be added , how and where to add them..? kindly help me. libgroupsock.lib(Groupsock.obj) : error LNK2001: unresolved external symbol _security_cookie

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #25

            Hi, This means that the library was compiled with Buffer Security Check[^]. Since we know that Visual Studio 6 does not implement compiler security checks... this means that the library you are attempting to use was compiled with VS2002 or above. You have two choices: 1.) Recompile the library with /GS (Buffer Security Check)[^] disabled. 2.) In your VC6 project... try linking with the bufferoverflowU.lib library that was included in deprecated (older) versions of the Platform SDK. Compiler Security Checks In Depth[^] Best Wishes, -David Delaune

            1 Reply Last reply
            0
            • S sindhumahe

              hi, i am facing the following trouble. i have included the path of the libraries ad "tools->options->include files libgroupsock.lib(GroupsockHelper.obj) : error LNK2001: unresolved external symbol ___security_cookie like this i am facing the problem with four libraries. can u guide me ?

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #26

              sindhumahe wrote:

              i have included the path of the libraries ad "tools->options->include files

              Why would you do that? Libraries and include/header files are not the same thing. If you are using VS6, click the Directories tab of the Tools->Options dialog. In the Show directories for: combobox, select Library files. Add the name of the folder that contains the .lib file you are using. Click the Link tab of the Project->Settings dialog. In the Category combobox, select Input. In the Object/library modules: edit control, add the name of the .lib file you are using.

              "One man's wage rise is another man's price increase." - Harold Wilson

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              "Man who follows car will be exhausted." - Confucius

              S 2 Replies Last reply
              0
              • D David Crow

                sindhumahe wrote:

                i have included the path of the libraries ad "tools->options->include files

                Why would you do that? Libraries and include/header files are not the same thing. If you are using VS6, click the Directories tab of the Tools->Options dialog. In the Show directories for: combobox, select Library files. Add the name of the folder that contains the .lib file you are using. Click the Link tab of the Project->Settings dialog. In the Category combobox, select Input. In the Object/library modules: edit control, add the name of the .lib file you are using.

                "One man's wage rise is another man's price increase." - Harold Wilson

                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                "Man who follows car will be exhausted." - Confucius

                S Offline
                S Offline
                sindhumahe
                wrote on last edited by
                #27

                hi , i already tried to include the libraries in the Directories tab of the Tools->Options dialog. but that didnt solve the problem . i opened a .mak file in the workspace, its not a project. so in its settings in dont have an option for link the .lib files . how should i build a .mak file which has to be linked to few of the libraries.

                D 1 Reply Last reply
                0
                • D David Crow

                  sindhumahe wrote:

                  i have included the path of the libraries ad "tools->options->include files

                  Why would you do that? Libraries and include/header files are not the same thing. If you are using VS6, click the Directories tab of the Tools->Options dialog. In the Show directories for: combobox, select Library files. Add the name of the folder that contains the .lib file you are using. Click the Link tab of the Project->Settings dialog. In the Category combobox, select Input. In the Object/library modules: edit control, add the name of the .lib file you are using.

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "Man who follows car will be exhausted." - Confucius

                  S Offline
                  S Offline
                  sindhumahe
                  wrote on last edited by
                  #28

                  hi, i will tell what i need exactly. i have .mak file called testprogs.mak. this has to be linked to four .lib files. the problem is how should i first build a make file. what i do is openworkspace -> .mak file -> ok vc 6.0 by default creates a workspace. now the item opened in just a make file and not a project, so i am not able to link the .lib files. and finally getting many errors. kindly help me

                  D 1 Reply Last reply
                  0
                  • E Eugen Podsypalnikov

                    Do you compile for x64 ? :) Please remove all additional libs and try to set the only "full pathed" msvcrt.lib from your x64 SDK directory :)

                    virtual void BeHappy() = 0;

                    S Offline
                    S Offline
                    sindhumahe
                    wrote on last edited by
                    #29

                    hi, i will tell what i need exactly. i have .mak file called testprogs.mak. this has to be linked to four .lib files. the problem is how should i first build a make file. what i do is openworkspace -> .mak file -> ok vc 6.0 by default creates a workspace. now the item opened in just a make file and not a project, so i am not able to link the .lib files. and finally getting many errors. kindly help me

                    1 Reply Last reply
                    0
                    • S sindhumahe

                      hi , i already tried to include the libraries in the Directories tab of the Tools->Options dialog. but that didnt solve the problem . i opened a .mak file in the workspace, its not a project. so in its settings in dont have an option for link the .lib files . how should i build a .mak file which has to be linked to few of the libraries.

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #30

                      sindhumahe wrote:

                      i already tried to include the libraries in the Directories tab of the Tools->Options dialog.

                      You mean the libraries folder?

                      "One man's wage rise is another man's price increase." - Harold Wilson

                      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                      "Man who follows car will be exhausted." - Confucius

                      S 1 Reply Last reply
                      0
                      • D David Crow

                        sindhumahe wrote:

                        i already tried to include the libraries in the Directories tab of the Tools->Options dialog.

                        You mean the libraries folder?

                        "One man's wage rise is another man's price increase." - Harold Wilson

                        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                        "Man who follows car will be exhausted." - Confucius

                        S Offline
                        S Offline
                        sindhumahe
                        wrote on last edited by
                        #31

                        hi, ya i included the folder where the .lib files are present. any idea to resolve this , kindlyhelp.

                        1 Reply Last reply
                        0
                        • S sindhumahe

                          hi, i will tell what i need exactly. i have .mak file called testprogs.mak. this has to be linked to four .lib files. the problem is how should i first build a make file. what i do is openworkspace -> .mak file -> ok vc 6.0 by default creates a workspace. now the item opened in just a make file and not a project, so i am not able to link the .lib files. and finally getting many errors. kindly help me

                          D Offline
                          D Offline
                          David Crow
                          wrote on last edited by
                          #32

                          I cannot figure out if you are using a .mak file or the IDE to compile your project. I would be inclined to get everything working using the latter, and then create a .mak file from that.

                          "One man's wage rise is another man's price increase." - Harold Wilson

                          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                          "Man who follows car will be exhausted." - Confucius

                          1 Reply Last reply
                          0
                          • S sindhumahe

                            hi , i am not able to find the .lib file which u mentioned. any idea to resolve my problem ? pplz help.:confused:

                            D Offline
                            D Offline
                            David Crow
                            wrote on last edited by
                            #33

                            If you do not have the necessary .lib files, the problem cannot be resolved.

                            "One man's wage rise is another man's price increase." - Harold Wilson

                            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                            "Man who follows car will be exhausted." - Confucius

                            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