【问题标题】:SVN Causing Errors with MakeSVN 导致 Make 错误
【发布时间】: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


    【解决方案1】:

    虽然不是一个明确的答案,但我可以通过查看一个新的工作副本来解决我的问题。我的make和VS的问题都已经解决了。我还没有确认这一点,但我怀疑它与刷新的 .svn 文件夹有关。

    【讨论】:

      猜你喜欢
      • 2016-04-28
      • 1970-01-01
      • 2014-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-29
      • 2011-05-10
      • 2019-03-27
      相关资源
      最近更新 更多