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. how to specify the compiler search path?(Visual Studio 2005)

how to specify the compiler search path?(Visual Studio 2005)

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++csharpvisual-studiotutorial
6 Posts 5 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.
  • F Offline
    F Offline
    Falconapollo
    wrote on last edited by
    #1

    I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!

    P N L L 4 Replies Last reply
    0
    • F Falconapollo

      I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      Tools->Options->Projects and Solutions->VC++Directories Choose: "Show directories for: Include Files" Add your directories here.

      Independent ACN Business Owner

      • Check out the possibilities for your future!
      • Financial independance
      • Full time or Part time
      • In more than 20 countries through North America, Europe, Asia and the Pacific
      • Featuring the ACN IRIS 5000 video phone. See the person you are talking to.

      Within you lies the power for good - Use it!

      F 1 Reply Last reply
      0
      • P PJ Arends

        Tools->Options->Projects and Solutions->VC++Directories Choose: "Show directories for: Include Files" Add your directories here.

        Independent ACN Business Owner

        • Check out the possibilities for your future!
        • Financial independance
        • Full time or Part time
        • In more than 20 countries through North America, Europe, Asia and the Pacific
        • Featuring the ACN IRIS 5000 video phone. See the person you are talking to.

        Within you lies the power for good - Use it!

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

        It doesn't work. I have tried. I think I shoud specify the search path for compiler.

        1 Reply Last reply
        0
        • F Falconapollo

          I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!

          N Offline
          N Offline
          Niklas L
          wrote on last edited by
          #4

          If it is the implementation files you're missing, you could just drag the missing cpp-files from windows explorer and drop them in your project tree, and they will be built from wherever they are stored.

          1 Reply Last reply
          0
          • F Falconapollo

            I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!

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

            Falconapollo wrote:

            Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory

            The text of the error message is perfectly clear and tells you that the file excel.cpp cannot be found at that path. Why are you trying to include a source (.cpp) file in this way; you should add the file to your project (directly or indirectly) and build it as normal.

            Unrequited desire is character building. OriginalGriff

            1 Reply Last reply
            0
            • F Falconapollo

              I build MFC project "czsj", and put some source files out of the project folder. I have specify the "additional includes" of the project, but I still get the error message: fatal error C1083: Cannot open include file: 'e:\work\t\czsj\excel.cpp': No such file or directory I have also tried to set the global VC includes, but failed. I think I can resolve the problem by specifying the search path of MS compiler. Any one can help? Thank you in advance!

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              The compiler will never search for cpp files, you have to add them explicitly to your project, see the solution pane. Either create them inside your project, or add them ("Add Existing Item") if they already exist. The one thing that gets looked for is header files (*.h), that is what all the "include" commands and directives are for. :)

              Luc Pattyn [My Articles] Nil Volentibus Arduum iSad

              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