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

很早就在下了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

还是蛮有成就感的啊哈哈!!

转载于:https://my.oschina.net/wdliming/blog/36023

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值