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
还是蛮有成就感的啊哈哈!!
在安装好的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
还是蛮有成就感的啊哈哈!!
相关文章推荐
- Windows 10 与 MySQL 5.5 安装使用及免安装使用详细教程(图文)
- PHP5.5在windows 安装使用 memcached 服务端的方法以及 php_memcache.dll 下载
- 【原】无脑操作:Windows 10 + MySQL 5.5 安装使用及免安装使用
- PHP5.5在windows安装使用memcached服务端的方法
- Windows安装GNU编译器使用makefile
- PHP5.5在windows 安装使用 memcached 服务端的方法以及 php_memcache.dll 下载
- PHP5.5在windows安装使用memcached服务端的方法
- 使用anaconda在windows上安装tensorflow
- xgboost入门以及windows下安装及使用二
- windows下nginx安装、配置与使用
- windows 2000系统下安装PPPOE协议,使用adsl拔号上网
- 使用xampp安装Mantis(Windows版)
- windows下mongodb安装与使用整理
- Linux和windows下Vmware Server 安装使用笔记
- Boost下载安装编译配置使用指南(含Windows、Linux以及ARM Linux)
- charles抓包的安装,使用说明以及常见问题解决(windows)
- Windows下Anaconda的安装和简单使用
- windows下redis可视化客户端redisClient的安装及基本使用
- windows下redis可视化客户端redisClient的安装及基本使用
- 在windows安装SASS不报错但无法使用