【发布时间】:2018-03-15 00:57:21
【问题描述】:
我遇到了一个问题,我可以在桌面上的文件夹中构建 c++ hello world,但无法在 SVN 存储库的工作副本中构建相同的程序。
以下是详细信息:
这是我在 Windows 终端中运行以构建我的 hello world 的内容:
mingw32-make -f Makefile.mak
当我在“非 SVN 目录”中运行此行时,helloWorld.exe 构建成功并且我能够运行它。当我在我的 SVN 工作副本中运行此行时,出现以下错误:mingw32-make: *** INTERNAL: readdir: Invalid argument. Stop.
我的程序是:
#include <iostream>
int main() {
std::cout << "hello world" << std::endl;
}
我的makefile是:
all:
g++ helloWorld.cpp -o helloWorld
另一个线索可能是……
虽然我目前没有在 Visual Studio 中进行编辑或构建,但值得注意的是,我无法在工作副本目录中创建 Visual Studio 项目。我收到以下错误: (是的,我能够在其他位置成功创建项目)
一些补充信息:
- 我使用的是 Windows 10
- 我有 TortoiseSVN 1.7.12 - 64 位
- 颠覆 1.7.9
- GNU Make 3.82.90
- Visual Studio 2015 专业版
我的目录结构是:
+-- Desktop
| +-- filterSim2_local (working copy directory)
| | +-- .svn
| | +-- make test (this one doesn't work)
| | | +-- helloWorld.cpp
| | | +-- Makefile.mak
| +-- make test (and this one does work)
| | +-- helloWorld.cpp
| | +-- Makefile.mak
任何帮助或答案将不胜感激!谢谢!
【问题讨论】:
标签: svn makefile tortoisesvn mingw32