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. Visual Studio 2012 Include Path/macro redefination

Visual Studio 2012 Include Path/macro redefination

Scheduled Pinned Locked Moved Visual Studio
c++csharpvisual-studio
4 Posts 2 Posters 4 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I am running VS2012 Windows 8.1 and I have downloaded SDK 7.1 My include path includes VC/ALTMFC for using Microsoft MFC it also includes the include path for the SDK 7.1 I also included the include directory that's in Visual Studio VC since I am using Visual C++ Seems like I need all 3 of these directories to get a clean build Whether I use the above directory or I get a number compile errors macro redefinitions Is there a basic include directory I should be using/ or a preprocessor directive To alleviate these problems Thanks

    L 1 Reply Last reply
    0
    • F ForNow

      Hi I am running VS2012 Windows 8.1 and I have downloaded SDK 7.1 My include path includes VC/ALTMFC for using Microsoft MFC it also includes the include path for the SDK 7.1 I also included the include directory that's in Visual Studio VC since I am using Visual C++ Seems like I need all 3 of these directories to get a clean build Whether I use the above directory or I get a number compile errors macro redefinitions Is there a basic include directory I should be using/ or a preprocessor directive To alleviate these problems Thanks

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

      In my experience of all versions of Visual Studio, it works 'out of the box'. The installation process normally sets up the links to the correct directories for both compiler and linker. It may be that you have some incorrect settings in your project or header file(s) which causes the errors; although you have not shown us the detail of the errors.

      F 1 Reply Last reply
      0
      • L Lost User

        In my experience of all versions of Visual Studio, it works 'out of the box'. The installation process normally sets up the links to the correct directories for both compiler and linker. It may be that you have some incorrect settings in your project or header file(s) which causes the errors; although you have not shown us the detail of the errors.

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        Richard I ported this over from VS 2008 and in fact that may be the issue Based on your advice instead adding a existing project to the solution I may do a create new and cut and paste the code in Thanks

        L 1 Reply Last reply
        0
        • F ForNow

          Richard I ported this over from VS 2008 and in fact that may be the issue Based on your advice instead adding a existing project to the solution I may do a create new and cut and paste the code in Thanks

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

          I upgraded from VS2008 to VS2010 and then to VS2012, and did not have any problems that I recall. It may be that 8 to 12 is too big a leap for the converter.

          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