如何将C ++项目从一个位置移动到另一位置

时间:2019-10-15 09:51:18

标签: c++ visual-studio qt visual-c++ qt5

我有一个C ++项目,我想从一个位置移动到另一个位置。

但是当我尝试这样做时,编译器找不到所有c ++项目中的头文件。

我应该怎么做才能使编译器能够找到头文件。

所有丢失的文件都是QT文件。

这些是我的包含物。

#include <gl\glew.h>
#include <glfw3.h>
#include "WavefrontRenderer.h"  // Not able to locate this one
#include "TreeModel.h"
#include "ui_WavefrontRenderer.h"  // Not able to locate this one
#include <QtWidgets/QApplication>   // Not able to locate this one
#include <QMessageBox>              // Not able to locate this one
#include "Sum_Shader.h"
#include "ui_WavefrontRenderer.h"   // Not able to locate this one
#include "Container.h"
#include "sph.h"
#include "ResourceManager.h"
#include "Camera.h"
#include "Font.h"
#include <Camera.h>

丢失的文件位于项目的根目录

C:\ Users \ User1 \ source \ repos \ MyProject

当我将项目移至以下位置的另一个系统时

C:\ Users \ User2 \ source \ repos \ MyProject

根项目中的标题显示为丢失。

enter image description here

0 个答案:

没有答案