|
Re: Type GObject could not be resolved [message #1823912 is a reply to message #1823835] |
Fri, 03 April 2020 17:39 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
You have to tell two different things where your headers can be found:
- the compiler via the makefile
- the CDT Indexer
They are independent.
To do (1) Set the include path for each compiler at:
Project --> Properties --> C/C+ Build --> Settings --> Tool Settings tab --> <compiler> --> Includes
This only works when Eclipse is generating the Makefile.
To do (2) Set the include path as a User Entry at:
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries tab --> <language>
You can do both with:
Project --> Properties --> C/C++ General --> Paths and Smbols
but you need the CDT Managed Build Settings provider enabled in
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Providers tab
[Updated on: Fri, 03 April 2020 17:45] Report message to a moderator
|
|
|
|
Re: Type GObject could not be resolved [message #1823928 is a reply to message #1823914] |
Sat, 04 April 2020 01:59 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
I've had similar problems with glib.
Sometimes just rebuilding the index works.
Sometimes it just takes time.
I know. Not much help.
As for Makefile Projects, I import the code instead of starting a new project.
File --> Import --> C/C++ --> Existing Code as Makefile Project
|
|
|
Powered by
FUDForum. Page generated in 0.02045 seconds