Home » Community » Newbie corner » I'm having a problem including a library
|
|
|
|
|
|
|
Re: I'm having a problem including a library [message #60567 is a reply to message #60560] |
Sun, 05 May 2024 15:26 |
omari
Messages: 266 Registered: March 2010
|
Experienced Member |
|
|
Hi,
instead of addeding the include folder using build methods, you should add the folder containing the "include" directory, in order to be able to use includes like this: "include/core/somefile.h".
regards
omari.
|
|
|
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
|
|
|
Goto Forum:
Current Time: Sun May 19 04:36:34 CEST 2024
Total time taken to generate the page: 0.02021 seconds
|