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
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
|
|
|