1

我有一个旧的 Borland 项目,我想将它移植到Visual Studio 2008。有没有办法以人类可读的格式从 .ide 文件中转储源文件、编译选项和依赖信息?

我想要比“生成 Makefile”选项更全面的东西。

4

3 回答 3

2

如果这是一个VCL应用程序,选项和设置是您最不关心的问题,因为 VCL API 与MFC完全不同。许多 Borland 编译器选项实际上是为了提供与 MFC 的兼容性。除此之外,编译器选项实际上并没有太多重叠。

我偶尔会向同事提供我的 Borland 项目的 Visual Studio“解决方案”版本,通常只需选择解决方案中的 .cpp 文件并设置任何全局定义(请注意,这些是控制台模式程序,没有 GUI)。

更大的问题是流类、values.h 和 Microsoft 已弃用的函数中的细微不一致。即_stricmp()、_chdir()、_mkdir() _getcwd() 代替stricmp() chdir() mkdir() getcwd() 等...

我通常没有发现各种 Borland 生成的 makefile 与任何其他编译器(或者甚至与 Borland 编译器)非常兼容。

于 2008-12-22T23:18:30.170 回答
2

我认为在 Visual Studio 中创建一个新项目然后将所有源文件和库添加到其中会更容易。

我认为 Visual Studio 不支持OWL(或任何 Borland 库)。

于 2008-12-24T13:10:00.503 回答
1

I don't know about Borland 5, 6 or latest compilers (latest version I've used is Borland C++ 3.1 back in 1994/95 ...), but if you have the chance to generate a Makefile maybe the best solution is to use that Borland makefile to write a NMAKE compatible makefile by hand, if it's not too large.

Another option is to manually import the header, source files and edit the project (compatibilize source and compilation settings) until the build is successful. I think this can be achieved in a short time.

To what dependencies is your project tied to? VCL? MFC? Just standard libs?

于 2008-12-21T23:01:40.797 回答