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. include file search sequence

include file search sequence

Scheduled Pinned Locked Moved C / C++ / MFC
csharpapachevisual-studiohelpquestion
2 Posts 2 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.
  • W Offline
    W Offline
    WBurgMo
    wrote on last edited by
    #1

    I downloaded the Apache Portable Runtime for windows. It included a VC6 solution and project definitions. I loaded the soultion with Visual Studio 2005 and it successfully converted the solution and project to the new format. I can compile the code with the converted solution. I decided to create a new solution from scratch. But when I compile my solution it finds the wrong include file. In my configuration I specify an include search string of: ".\include; .\include\arch; .\include\arch\win32; .\include\arch\unix" The include in question, "apr_arch_file_io.h", exists in the "win32" and "unix" directories. but the compiler loads the one in the "unix" directory. I do not understand why the converted solution works and mine does not. If I remove the include from the "unix" directory then my solution compiles cleanly. Any thoughts as to what configuration option I have to set to my solution to work. I have looked at the converted project defintions but nothing obvious stands out. Thanks for any help James Johnson

    J 1 Reply Last reply
    0
    • W WBurgMo

      I downloaded the Apache Portable Runtime for windows. It included a VC6 solution and project definitions. I loaded the soultion with Visual Studio 2005 and it successfully converted the solution and project to the new format. I can compile the code with the converted solution. I decided to create a new solution from scratch. But when I compile my solution it finds the wrong include file. In my configuration I specify an include search string of: ".\include; .\include\arch; .\include\arch\win32; .\include\arch\unix" The include in question, "apr_arch_file_io.h", exists in the "win32" and "unix" directories. but the compiler loads the one in the "unix" directory. I do not understand why the converted solution works and mine does not. If I remove the include from the "unix" directory then my solution compiles cleanly. Any thoughts as to what configuration option I have to set to my solution to work. I have looked at the converted project defintions but nothing obvious stands out. Thanks for any help James Johnson

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      One thought only: look at the preprocessor directives for the converted project and in the code. When cross platform code is involved you normally insert ‘#ifdef’ statements in the code to specify which platform you are compiling for.

      INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

      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