简体   繁体   English

CodeLite自动完成功能找不到C ++标头

[英]CodeLite autocomplete cannot find c++ headers

CodeLite 7.0, Windows 7, MinGW installed, autocomplete cannot find anything c++ related. CodeLite 7.0,Windows 7,MinGW已安装,自动完成功能找不到与c ++相关的任何内容。 I have a workspace and a project in it (just started with CodeLite). 我有一个工作区和一个项目(只是从CodeLite开始)。

When I try to include a c++ header (eg string or vector) or use those classes in my code i get no autocomplete. 当我尝试包含C ++标头(例如字符串或向量)或在我的代码中使用这些类时,我没有自动完成功能。 Compiling and running works fine, just the autocomplete does not. 编译和运行正常,只是自动完成不行。

Under CodeLite -> Settings -> Code Completion -> CTags there is a list of MinGW's include folders for c++ (I checked, all headers are in those folders). CodeLite > Settings -> Code Completion -> CTags有一个用于c ++的MinGW包含文件夹列表(我检查过,所有标头都在这些文件夹中)。

Am I missing something? 我想念什么吗?

I may be way off base here, but found a similar (same?) issue. 我可能不在这里,但是发现了一个类似的问题。

This does NOT work: 这不起作用:

#include <vector>
using std::vector;

vec (No autocomplete)

However, both other ways work as expected: 但是,其他两种方式都可以正常工作:

#include <vector>

std::vec (Yes autocomplete)

OR: 要么:

#include <vector>
using namespace std;

vec (Yes autocomplete)

What happens when you go to : CodeLite -> Workspace -> Retag Workspace (full) , does it change anything? 当您转到: CodeLite -> Workspace -> Retag Workspace (full) ,会发生什么,它有什么改变吗?

And just to make sure: you do have a workspace and project, right? 只是要确保:您确实有一个工作区和项目,对吗?

Eran 伊兰

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM