Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

[RESOLVED] "Cannot Open Source File" that is definitely there

$
0
0
I'm going up the wall with this one. I'm trying to include a certain library, but VS2017 insists it can't find the header file. It's been a long time since I've used Visual Studio or C++, but I was able to include another library by following these same steps, so I feel silly that I can't do it again! For context's sake, I'm trying to work with the DragonBones/SFML library (https://github.com/DragonBones/DragonBonesCPP/tree/master/SFML). The header file is "DragonBonesHeaders.h," and is included in a folder called "dragonBones" by default. The include statements reference it by its subfolder, #include . First, I set up the project with an Additional Include Directory to the DragonBones include directory, using a relative path. Failure. I try an absolute path - zilch. Then, I get annoyed at how many folders the snapshot dubbed "dragonBones" by default (four and a half), so I start renaming folders just to make sure the identical names aren't causing the problem. The include statements now read: #include . Nothing. Then, I tried to get rid of the subfolder problem entirely by adding dragonBonesCore to my Additional Include Directories and changing the include statements to #include . Nope! This is getting so silly that I don't even know if I can trust copy and paste. Here are some screenshots instead, so you can see the exact content. Additional Include Directories for the project in question: Image: https://i.imgur.com/sYTUIUy.png The folder containing the file, with its directory structure visible: Image: https://i.imgur.com/uvxfVSW.png The original #include statement, using my renamed folder: Image: https://i.imgur.com/JJ4yDUG.png The errors: Image: https://i.imgur.com/KyLKJxm.png The modified #include statement, linking directly to the containing folder: Image: https://i.imgur.com/q40YSko.png The error: Image: https://i.imgur.com/utxILuO.png

Viewing all articles
Browse latest Browse all 3042

Trending Articles