waldemarlima Posted September 8, 2015 Posted September 8, 2015 screenshot = http://prntscr.com/8e362m how i add folder in my project what i can #include "foldername/filename.h" ? Quote
cassius Posted September 9, 2015 Posted September 9, 2015 I do not understand the question. Can you explain better? 1 Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Josh Posted September 9, 2015 Posted September 9, 2015 The error means the path you entered is not correct relative to the file its being included from. 1 Quote Let's build cool stuff and have fun.
Undac Posted September 9, 2015 Posted September 9, 2015 For everyone with this problem: For Leadwerks projects, the root is %UserProfile%\Documents\Leadwerks\Projects\ProjectName\Source . If the file called header.h is there, you include it with #include "header.h" If it is in %UserProfile%\Documents\Leadwerks\Projects\ProjectName\Source\demo , you include it with #include "demo/header.h" Visual studio labels do not create folders. If you create a label called "demo" and a "header.h" file under the "demo" label, you will still include the header as #include "header.h" , and not #include "demo/header.h" If you create a header file named "header.h" in "%UserProfile%\Documents\Leadwerks\Projects\ProjectName\HeadersFolder" , you include it with #include "../HeadersFolder/header.h" 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.