使用 VC 编译器在 Eclipse 中创建可执行文件

Posted

技术标签:

【中文标题】使用 VC 编译器在 Eclipse 中创建可执行文件【英文标题】:Creating executable in Eclipse with VC compiler 【发布时间】:2015-09-22 10:09:13 【问题描述】:

我正在尝试使用 Microsoft Visual C 编译器在 Eclipse 中构建我的项目并创建一个可执行文件。我在控制台中得到以下输出:

12:02:42 **** Incremental Build of configuration Release for project ProjectName ****
make all 
Building target: ProjectName.exe
Invoking: Linker (link)
link /nologo /OUT:"ProjectName.exe"
link: cannot create link `/OUT:ProjectName.exe' to `/nologo': No such file or directory
make: *** [ProjectName.exe] Error 1

我一直在寻找解决方案几个小时,但没有结果。任何帮助将不胜感激。

【问题讨论】:

看起来它正在运行 cygwin 的 link 而不是 VC 链接器。 【参考方案1】:

切换到只使用 Visual Studio。立即工作。

【讨论】:

以上是关于使用 VC 编译器在 Eclipse 中创建可执行文件的主要内容,如果未能解决你的问题,请参考以下文章