Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Today's Messages (on)  | Unanswered Messages (off)

Forum: Newbie corner
 Topic: I'm having a problem including a library
Re: I'm having a problem including a library [message #60570 is a reply to message #60565] Fri, 10 May 2024 06:30
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 221
Registered: June 2011
Experienced Member
Quote:
I include a header file like this: #include "core/core.h"
"core/core.h" file contains this include: #include "include/core/Type.h"


If I'm reading what you're saying correctly, I'm guessing it's from current directory so you're effectively trying to include "core/include/core/Type.h" which doesn't exist.

I think from core/core.h you should be doing #include "Type.h" since that's already in the core directory. "core/Type.h" may also work because include is already internal.

**EDIT** otherwise if you want to retain your naming scheme then you may need to hoist core.h out of the core directory up one level. Another way may just be to add . to internal includes - this is the easiest change.

[Updated on: Fri, 10 May 2024 08:34]

Report message to a moderator




Current Time: Fri May 10 13:06:59 CEST 2024

Total time taken to generate the page: 0.01710 seconds