zoukankan      html  css  js  c++  java
  • VC6.0环境安装STLport-5.2.1

    今天安装STLport,网上搜资料安装好久,都不行,因为STLport 的版本不对,我这是STLport-5.2.1新版本。

    (注意:下面的步骤都在一个cmd里操作,很简单的原因:环境变量啊)

    1首先在…Microsoft Visual StudioVC98BinVCVARS32.BAT中, 把%STLport%stlport; ,(注意有英文的分号)  加入Include路径中;把%STLport%lib; ,加入Lib路径中;(这里现在%STLport%下没有lib子目录,先加上去,一会编译会生成的)下面是的我:

    set INCLUDE=C:STLport-5.2.1stlport;%MSVCDir%ATLINCLUDE;%MSVCDir%INCLUDE;%MSVCDir%MFCINCLUDE;%INCLUDE%
    set LIB=C:STLport-5.2.1lib;%MSVCDir%LIB;%MSVCDir%MFCLIB;%LIB%

    2打开cmd,运行刚才的这个VCVARS32.BAT;进入%STLport%(这个是你的STLport安装路径), 运行configure --help,看一下;运行configure msvc6,正确的话,会有:

    STLport Configuration Tool for Windows 
    Setting compiler: Microsoft Visual C++ 6.0 
    Setting platform: Windows XP 
    Done configuring STLport. 
    Go to build/lib folder and type "nmake clean install" to build and
    install STLport to the "lib" and "bin" folders.
    Go to build/test/unit folder and type nmake clean install to
    build unit tests and install them in bin folder.

    注意:这里不要按网上很多人说的运行:configure -c msvc6,会有问题的,我就是被困在这儿很长时间的;这个应该是老一点的版本的方式。还有就是这个configure也不是在%STLport%uildlib下进行的,网上都这样讲,但是%STLport%uildlib下没有configure啊!

    3接下来先进入%STLport%uildlib ;执行nmake  /f  msvc.mak,这个要等一段时间;之后,执行nmake  /f  msvc.mak install,是一些copy动作。

    (注意:这里执行 nmake /f msvc.mak 如果出现error,就根据提示到相应的目录下把相应的文件清空,再来重新执行一遍)

    4主要是上面的步骤,后面的就是配置VC6.0了:

    A、Tools -> Options -> Directories,选“Include files”,增加%STLport%stlport,并移至顶端;不移至顶端,还是会用原来VC自带的STL;

    选“Library files”,增加%STLport%lib,并移至顶端;

    B、Project -> Settings -> C/C++, 在Category中选 “C++ Language”,

    勾选”Enable exception handling”(这个最好选一下);在Category中选”Code Generation”, 在Use run-time library中选”Debug Mulithreaded”(这个Release版选” Mulithreaded”);

    到此,我的编译可以通过了,如有疑问,留言解决。

  • 相关阅读:
    2020面向对象程序设计寒假作业2 题解
    题解 P3372 【【模板】线段树 1】
    Global variant VS local variant
    u2u
    深入浅出PowerShell系列
    深入浅出WF系列
    debug
    深入浅出SharePoint系列
    InfoPath debug
    深入浅出Nintex系列
  • 原文地址:https://www.cnblogs.com/foundwant/p/3224599.html
Copyright © 2011-2022 走看看