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. Visual Studio
  4. Problem with building a solution

Problem with building a solution

Scheduled Pinned Locked Moved Visual Studio
helpcsharpc++visual-studio
10 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.
  • A Offline
    A Offline
    Argonia
    wrote on last edited by
    #1

    Hello everyone. I have a problem with the new Visual studio 2012 Premium edition. The problems start when vs2012 was installed on my working pc. Then the project (under vs2010) stopped compiling on both versions even when it was transformed for vs2012. After that all SDKs and Visual Studios were removed and only vs2012 and SDK 7.1 were installed. But the projects didn't compile. After fixing the Include Directories and Library Directories the projects finally run perfectly on my boss'es machine, but not mine. The errors which i get are these :

    e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of global namespace
    1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2065: 'LOCALE_NAME_INVARIANT' : undeclared identifier
    1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C3861: 'CompareStringEx': identifier not found

    These are the only errors i get and all the projects in the solution are throwing them. I have updated Windows(with all the updates available) the Include Directories look like this:

    $(VCInstallDir)include
    $(VCInstallDir)atlmfc\include
    $(WindowsSdkDir)include
    $(WindowsSDK_IncludePath)
    $(FrameworkSDKDir)\include

    The Library directories look like this:

    $(WindowsSDK_LibraryPath_x86)
    $(VCInstallDir)lib
    $(VCInstallDir)atlmfc\lib
    $(WindowsSdkDir)lib
    $(FrameworkSDKDir)\lib

    If you have some ideas please share them with me. Thank you. P.S I am using Windows 7

    D L 3 Replies Last reply
    0
    • A Argonia

      Hello everyone. I have a problem with the new Visual studio 2012 Premium edition. The problems start when vs2012 was installed on my working pc. Then the project (under vs2010) stopped compiling on both versions even when it was transformed for vs2012. After that all SDKs and Visual Studios were removed and only vs2012 and SDK 7.1 were installed. But the projects didn't compile. After fixing the Include Directories and Library Directories the projects finally run perfectly on my boss'es machine, but not mine. The errors which i get are these :

      e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of global namespace
      1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2065: 'LOCALE_NAME_INVARIANT' : undeclared identifier
      1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C3861: 'CompareStringEx': identifier not found

      These are the only errors i get and all the projects in the solution are throwing them. I have updated Windows(with all the updates available) the Include Directories look like this:

      $(VCInstallDir)include
      $(VCInstallDir)atlmfc\include
      $(WindowsSdkDir)include
      $(WindowsSDK_IncludePath)
      $(FrameworkSDKDir)\include

      The Library directories look like this:

      $(WindowsSDK_LibraryPath_x86)
      $(VCInstallDir)lib
      $(VCInstallDir)atlmfc\lib
      $(WindowsSdkDir)lib
      $(FrameworkSDKDir)\lib

      If you have some ideas please share them with me. Thank you. P.S I am using Windows 7

      D Offline
      D Offline
      dusty_dex
      wrote on last edited by
      #2

      You're not alone. Are you using Windows XP? http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/17e5f678-c9b2-448e-a66d-299ff1e9fec1/

      "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

      A 1 Reply Last reply
      0
      • D dusty_dex

        You're not alone. Are you using Windows XP? http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/17e5f678-c9b2-448e-a66d-299ff1e9fec1/

        "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

        A Offline
        A Offline
        Argonia
        wrote on last edited by
        #3

        No , its windows 7

        1 Reply Last reply
        0
        • A Argonia

          Hello everyone. I have a problem with the new Visual studio 2012 Premium edition. The problems start when vs2012 was installed on my working pc. Then the project (under vs2010) stopped compiling on both versions even when it was transformed for vs2012. After that all SDKs and Visual Studios were removed and only vs2012 and SDK 7.1 were installed. But the projects didn't compile. After fixing the Include Directories and Library Directories the projects finally run perfectly on my boss'es machine, but not mine. The errors which i get are these :

          e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of global namespace
          1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2065: 'LOCALE_NAME_INVARIANT' : undeclared identifier
          1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C3861: 'CompareStringEx': identifier not found

          These are the only errors i get and all the projects in the solution are throwing them. I have updated Windows(with all the updates available) the Include Directories look like this:

          $(VCInstallDir)include
          $(VCInstallDir)atlmfc\include
          $(WindowsSdkDir)include
          $(WindowsSDK_IncludePath)
          $(FrameworkSDKDir)\include

          The Library directories look like this:

          $(WindowsSDK_LibraryPath_x86)
          $(VCInstallDir)lib
          $(VCInstallDir)atlmfc\lib
          $(WindowsSdkDir)lib
          $(FrameworkSDKDir)\lib

          If you have some ideas please share them with me. Thank you. P.S I am using Windows 7

          D Offline
          D Offline
          dusty_dex
          wrote on last edited by
          #4

          try adding this to stdafx.h

          #define _USING_V110_SDK71_

          See here for clues. http://connect.microsoft.com/VisualStudio/feedback/details/773422/compiler-error-when-using-v110-xp-platform-toolset-visual-studio-2012

          "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

          A 1 Reply Last reply
          0
          • D dusty_dex

            try adding this to stdafx.h

            #define _USING_V110_SDK71_

            See here for clues. http://connect.microsoft.com/VisualStudio/feedback/details/773422/compiler-error-when-using-v110-xp-platform-toolset-visual-studio-2012

            "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

            A Offline
            A Offline
            Argonia
            wrote on last edited by
            #5

            I did, i am still getting the errors. Btw the Platform Toolset of each of the projects is set to Visual Studio 2012 (v110)

            D 1 Reply Last reply
            0
            • A Argonia

              Hello everyone. I have a problem with the new Visual studio 2012 Premium edition. The problems start when vs2012 was installed on my working pc. Then the project (under vs2010) stopped compiling on both versions even when it was transformed for vs2012. After that all SDKs and Visual Studios were removed and only vs2012 and SDK 7.1 were installed. But the projects didn't compile. After fixing the Include Directories and Library Directories the projects finally run perfectly on my boss'es machine, but not mine. The errors which i get are these :

              e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2039: 'CompareStringEx' : is not a member of global namespace
              1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C2065: 'LOCALE_NAME_INVARIANT' : undeclared identifier
              1>e:\programs\msvs\2012\vc\atlmfc\src\mfc\afximpl.h(423): error C3861: 'CompareStringEx': identifier not found

              These are the only errors i get and all the projects in the solution are throwing them. I have updated Windows(with all the updates available) the Include Directories look like this:

              $(VCInstallDir)include
              $(VCInstallDir)atlmfc\include
              $(WindowsSdkDir)include
              $(WindowsSDK_IncludePath)
              $(FrameworkSDKDir)\include

              The Library directories look like this:

              $(WindowsSDK_LibraryPath_x86)
              $(VCInstallDir)lib
              $(VCInstallDir)atlmfc\lib
              $(WindowsSdkDir)lib
              $(FrameworkSDKDir)\lib

              If you have some ideas please share them with me. Thank you. P.S I am using Windows 7

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

              The error message tells you exactly which line in afximpl.h is causing the problem, so you should go and have a look at that file to see what other dependencies it needs.

              Use the best guess

              A 1 Reply Last reply
              0
              • A Argonia

                I did, i am still getting the errors. Btw the Platform Toolset of each of the projects is set to Visual Studio 2012 (v110)

                D Offline
                D Offline
                dusty_dex
                wrote on last edited by
                #7

                Have you followed the link given in that article to project settings info http://msdn.microsoft.com/en-us/library/675f1588.aspx

                "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

                A 1 Reply Last reply
                0
                • L Lost User

                  The error message tells you exactly which line in afximpl.h is causing the problem, so you should go and have a look at that file to see what other dependencies it needs.

                  Use the best guess

                  A Offline
                  A Offline
                  Argonia
                  wrote on last edited by
                  #8

                  Thank you. Your message really helped me the problem is solved. The reason for this thing was a stupid include of the precompiled header in a file which wasn't in the same project. That caused for the compiler to look for declaration of WINVER in the wrong place and from there the errors were thrown because of the old value taken from the last macro in the Include Directories (BCGSoft reference). You get my +5

                  L 1 Reply Last reply
                  0
                  • D dusty_dex

                    Have you followed the link given in that article to project settings info http://msdn.microsoft.com/en-us/library/675f1588.aspx

                    "It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan That's what machines are for. Got a problem? Sleep on it.

                    A Offline
                    A Offline
                    Argonia
                    wrote on last edited by
                    #9

                    Thank you for your help i fixed it :)

                    1 Reply Last reply
                    0
                    • A Argonia

                      Thank you. Your message really helped me the problem is solved. The reason for this thing was a stupid include of the precompiled header in a file which wasn't in the same project. That caused for the compiler to look for declaration of WINVER in the wrong place and from there the errors were thrown because of the old value taken from the last macro in the Include Directories (BCGSoft reference). You get my +5

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

                      Thanks; glad you got it fixed so easily.

                      Use the best guess

                      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