Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows compile error and runtime error! #2

Open
maxenergy opened this issue Jan 20, 2024 · 1 comment
Open

windows compile error and runtime error! #2

maxenergy opened this issue Jan 20, 2024 · 1 comment

Comments

@maxenergy
Copy link

Dear friend,
When I compile with Windows VC, I get these errors:

1>D:\source\tmp\ChatBot\sample\Application.cpp(1131,12): error C2039: "DockSpaceOverViewport": is not a member of "ImGui"

1>D:\source\tmp\ChatBot\include\imfilebrowser.h(33,11): message : see declaration of 'ImGui'

1>D:\source\tmp\ChatBot\sample\Application.cpp(1131,33): error C3861: “DockSpaceOverViewport”: identifier not found

1>D:\source\tmp\ChatBot\sample\Application.cpp(1203,35): error C2065: “ImGuiConfigFlags_DockingEnable”: undeclared identifier
When I comment out DockSpaceOverViewport etc, compiling and running into errors at the following location:
bool Application::Initialize() {
bool success = true;
std::filesystem::path path_to_directory = "Conversations/";
for (const auto &entry: std::filesystem::directory_iterator(path_to_directory)) {
if (entry.is_regular_file()) {
const auto &file_path = entry.path();
std::string file_name = file_path.stem().string();
if (!file_name.empty()) {
conversations.emplace_back(file_name);
}
if (!conversations.size() > 0) {
bot->Add(convid);
conversations.emplace_back(convid);
}
}
}
if (!configure.claude.enable)
convid = conversations[0];
how to resolove?

@NGLSG
Copy link
Owner

NGLSG commented Jan 20, 2024

Have you installed imgui[docking-experimental] with VSPKG?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants