Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-user] Indexing Synchronized C++ Projects

It’s kind of an issue for both. The indexer needs to use the remote connection to retrieve the header file. There is a way to do this, but it’s a bit cumbersome currently. It would be great if it could be done automatically, but this would require a bit of work.

To get it to work, do the following (I was using a remote Makefile project):

1. Open the project properties
2. Open "C/C++ General"
3. Select “Paths and Symbols”
4. Make sure the “Includes” tab is selected
5. Select the language you’re using (e.g. “GNU C”)
6. Click on the “Add” button
7. In the directory field, enter “//<connection-name>/usr/include”, where <connection-name> is the name of the remote connection you used (NOT the domain name/IP).
8. Select “Add to all configurations”.
9. Select “Add to all languages” if you want other languages (e.g.GNU C++)
10. Click “OK" then "Apply and Close”

You should see now an “Includes” node in the project. You may also need to rebuild the index (it rebuilt automatically for me).

Regards,
Greg


On Mar 26, 2020, at 12:46 PM, John Eblen <jeblen@xxxxxxx> wrote:

Hi Josh,

I think that is more of a CDT question, so the CDT folks might be able to help:



John

On Wed, Mar 25, 2020 at 8:40 PM Davidson, Josh <josh.davidson@xxxxxxxx> wrote:
I’ve managed to successfully setup remote/synchronized C++ projects and have everything building Ok on the remote host.  However, it appears that the CDT indexer isn’t correctly pulling out and indexing headers from built-in include paths on the remote host.  Is there any trick to get this working correctly?

Thanks,
Josh
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user
_______________________________________________
ptp-user mailing list
ptp-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ptp-user


Back to the top