Byłem w tej sytuacji kilka razy, gdy studio graficzne nie honoruje Dodatkowe uwzględnianie katalogów, jeśli chodzi o lib
i header source files
. Na przykład właśnie pobrałem kod źródłowy MyGUI i upewniłem się, że katalogi z zawartością są poprawne. Nawet umieściłem je na absolutnych ścieżkach, Visual Studio wciąż narzekało, że nie może znaleźć konkretnych plików nagłówkowych.Visual Studio nie honoruje katalogów z zawartością
Czy ktoś przeżyć to samo z projektów, a jeśli tak, to czy istnieje rozwiązanie tego problemu? Blockquote
EDIT: My apologies for not being able to explain fully. I know that the library and source files have different include directories. The project that I received had correct directory paths for the Additional Include Directories and Additional Library Directories but Visual Studio still failed to recognize them properly. I can right click and open the header file within Visual Studio but when compiling it still complains it cannot find the required header files. I regularly make projects relying on a framework I myself programmed, so I am quite familiar with how to set up dependencies. This is however the second time this seems to be happening. I don't recall which 3rd party project I was trying to compile last time, but Visual Studio simply refused to believe that the
Additional Include Directories
paths is where it should look for the header files. I am not sure how to give the complete details of this particular library (MyGUI) but I can point you to the website where you can download it to try and see if it is able to find the header files that are included in the project (if it doesn't compile, that is fine, and it is probably because of additional dependencies, but it should at least be able to find files in the common folder, especially when I put absolute paths in Additional Include Directories)
Nigdy (od wersji 6) nie można prawidłowo skonfigurować programu Visual Studio do akceptowania plików nagłówkowych i/lub bibliotek. Opublikuj strukturę katalogów swojej biblioteki i sposób, w jaki konfigurujesz swój projekt w Visual Studio. –