转换“makefile.vc”到“.sln”解决方案文件

发布于 2024-11-18 08:51:03 字数 916 浏览 2 评论 0原文

我有一个 ma​​kefile.vc,我用它来通过这个 .bat 批处理文件进行编译:

ECHO OFF
CLS
SET VSTools="E:\_ProgramFiles_\MS VStudio 10\VC"
CALL "E:\_ProgramFiles_\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /xp /Release
CALL "E:\_ProgramFiles_\Microsoft DirectX SDK (June 2010)\Utilities\bin\dx_setenv.cmd"
CALL "E:\_ProgramFiles_\MS VStudio 10\VC\vcvarsall.bat"

PATH = E:\fbaxbins_v2\unixutils\bin;%path%
PATH = E:\fbaxbins_v2\perl\bin\MSWin32-x86;%path%
PATH = E:\fbaxbins_v2\nasm-2.03.01;%path%

MAKE vc
ECHO _
ECHO FB Alpha Compilation done. [MSVC Tools Environment]
ECHO _
PAUSE

How can I conversion ma​​kefile.vc (这是由 MAKE vc 调用)转换为 .sln 解决方案文件,我可以将其与 Visual C++ 2010 Express 一起使用,并具有能够调试、单步执行代码和使用智能感知的所有优点, ETC?

(注意:code::blocks 也可以,如果它更简单的话。)

I have a makefile.vc which I am using to compile via this .bat batch file:

ECHO OFF
CLS
SET VSTools="E:\_ProgramFiles_\MS VStudio 10\VC"
CALL "E:\_ProgramFiles_\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86 /xp /Release
CALL "E:\_ProgramFiles_\Microsoft DirectX SDK (June 2010)\Utilities\bin\dx_setenv.cmd"
CALL "E:\_ProgramFiles_\MS VStudio 10\VC\vcvarsall.bat"

PATH = E:\fbaxbins_v2\unixutils\bin;%path%
PATH = E:\fbaxbins_v2\perl\bin\MSWin32-x86;%path%
PATH = E:\fbaxbins_v2\nasm-2.03.01;%path%

MAKE vc
ECHO _
ECHO FB Alpha Compilation done. [MSVC Tools Environment]
ECHO _
PAUSE

How can I convert makefile.vc (which is called by MAKE vc) into a .sln solution file that I can use with Visual C++ 2010 Express with all the benefits of being able to debug, step through code and use intellisense, etc?

(Note: code::blocks is fine, too, if it's easier.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以酷 2024-11-25 08:51:03

(在评论中回答。请参阅没有答案的问题,但问题已在评论中解决(或在聊天中扩展)

@Hans Passant 写道:

您通常会使用 General + Makefile 项目模板。相当肯定它在 Express 版本中不可用。否则没有简单的方法可以将 makefile 机械地转换为解决方案。

您将在命令行中输入的内容放在那里。请注意,默认情况下 make.exe 不可用,Microsoft 版本称为 nmake.exe。这个 .bat 文件真的有效吗?

OP 写道:

这是这里的教程neosource.1emu.net/forums/index。 php?topic=1476.0 如果你想重新创建它;另外,我不在命令行中输入任何内容,只需双击 .bat 即可完成其工作

(Answered in comments. See Question with no answers, but issue solved in the comments (or extended in chat) )

@Hans Passant wrote:

You'd normally use the General + Makefile project template. Fairly sure that it is not available in the Express edition. There is otherwise no simple way to mechanically translate a makefile to a solution.

You put there what you type on the command line. Beware that make.exe is not available by default, the Microsoft version is called nmake.exe. Does this .bat file actually work?

The OP wrote:

it's a tutorial from here neosource.1emu.net/forums/index.php?topic=1476.0 if you want to recreate it; also I don't type anything at the command line just double click the .bat and it does its thing

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文