您的位置:首页 > 编程语言 > C语言/C++

Borland C++5.5编译器在windows下的安装和使用

2011-11-27 11:47 295 查看
很早就在下了borlandC++5.5,这还都是c-free的引导下安装和使用的,最近在网上看到这其实是个命令行工具,类似于gcc的,(当然没有gcc来的强大啦!不过还是很经典的,可以试试啊~)其实安装就是在在windows下添加一些环境变量和配置文件。当然我也要感谢网上的一些网友,使他们给了我很多提示。

在安装好的borlandC++5.5的文件下有一个readme文件:我摘录了部分如下:

2. From the bin directory of your installation:
a. Add "c:\Borland\Bcc55"
to the existing path
b. Create a bcc32.cfg file which will set
the compiler options for the Include
and Lib paths (-I and -L switches to
compiler) by adding these lines:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"
c. Create an ilink32.cfg file which will set
the linker option for the Lib path by
adding this line:
-L"c:\Borland\Bcc55\lib"

以上路径的当然要结合自己的安装路径,可是我试了很久,还是没有成功,(我还装了borland4.5的,可能和这个有关系),于是我在环境变量里的变量lib里添加了“;D:\Borland\BCC55\Lib”;在include里面添加了";D:\Borland\BCC55\Include";在path选项添加了“;D:\Borland\BCC55\Bin”,这样那个之后可算成功了;

如下所示:
C:\Documents and Settings\Administrator>bcc32
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Syntax is: BCC32 [ options ] file[s] * = default; -x- = turn switch x off
-3 * 80386 Instructions -4 80486 Instructions
-5 Pentium Instructions -6 Pentium Pro Instructions
-Ax Disable extensions -B Compile via assembly
-C Allow nested comments -Dxxx Define macro
-Exxx Alternate Assembler name -Hxxx Use pre-compiled headers
-Ixxx Include files directory -K Default char is unsigned
-Lxxx Libraries directory -M Generate link map
-N Check stack overflow -Ox Optimizations
-P Force C++ compile -R Produce browser info
-RT * Generate RTTI -S Produce assembly output
-Txxx Set assembler option -Uxxx Undefine macro
-Vx Virtual table control -X Suppress autodep. output
-aN Align on N bytes -b * Treat enums as integers
-c Compile only -d Merge duplicate strings
-exxx Executable file name -fxx Floating point options
-gN Stop after N warnings -iN Max. identifier length
-jN Stop after N errors -k * Standard stack frame
-lx Set linker option -nxxx Output file directory
-oxxx Object file name -p Pascal calls
-tWxxx Create Windows app -u * Underscores on externs
-v Source level debugging -wxxx Warning control
-xxxx Exception handling -y Produce line number info
-zxxx Set segment names

还是蛮有成就感的啊哈哈!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: