Another option is to use virtual paths Add a comment. Active Oldest Votes. Another way to solve this issue without modifying the code is described in this article , by enabling ASP Parent Paths at the site configuration in the IIS , simple steps are: go to the ASP feature of the site or application you want to configure parent paths on IIS Manager , in the list that appears configure the Enable Parent Paths option setting it to True.
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Dijkgraaf Dijkgraaf 9, 16 16 gold badges 36 36 silver badges 52 52 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Privacy policy. For example, the following code excerpt illustrates an ASP page that maps a parent path:. In addition, the following code except illustrates an ASP page that references an included file in a folder that uses a parent path:.
In several earlier versions of IIS, parent paths were enabled by default. In IIS 6. By default, class ASP script error messages are not sent to the Web browser, and any attempts to use parent paths will return the following error message to a Web browser:. If you enable sending ASP script error messages and your classic ASP scripts attempt to map a path in a parent folder, you receive the following error message in your Web browser:.
When your classic ASP scripts attempt to include a page that uses parent paths in IIS, you receive the following error message in your Web browser:. It also helps avoid collisions of similary-named inclusion files when you include things boost-style, because in your library and outside of your library's headers and other related code, you're always specifying the library you want to pull "x. This is only personal preference, but it seems to work out well for the libraries I'm developing and for boost as well.
Hope that helps! Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 10 months ago.
Active 8 years, 10 months ago. Viewed 29k times. My folder structure is libA x. In short some files in My algorithm directory needs to include definitions from its parent folder. Dipro Sen. Dipro Sen Dipro Sen 3, 11 11 gold badges 34 34 silver badges 50 50 bronze badges. What's your compilers or more precisely preprocessors opion about the path? I am using gcc, but it should work with msvc as well.
DiproSen My answer was deleted without comment. I hope it was useful while it was there. In response to you comment, I would check whether the algoithms really depend on x and y, or rather than traits presented by those classes? I could have made the functions in algorithm templated.
0コメント