Integrate Stlport with VC6.0

xiaoxiao2021-03-06  58

Environment VC6.0 SP5, WindowsXP SP2stlport version 4.6.2

My VC is installed in D: / Bin / VC6, extracting Stlport to d: / bin / vc6 / vc98, and the root of Stlport is Stlport (ie remove the original version number)

Edit D: / BIN / VC6 / VC98 / BIN VCVARS32.BAT file

Add% MSVCDIR% / stlport / stlport to liblyment, plus% MSVCDIR% / stlport / lib

After the change should be set include =% msvcdir% / stlport / stlport;% msvcdir% / atl / include;% msvcdir% / include;% msvcdir% / mfc / include;% include% set lib =% msvcdir% / stlport / lib ;% Msvcdir% / lib;% msvcdir% / mfc / lib;% lib%

Open a console window, run d: /bin/vc6/vc98/bin/vcvars32.bat,

If you return to Setting Environment for Using Microsoft Visual C Tools. Description is successful.

CD to D: / BIN / VC6 / VC98 / STLPORT / SRC Run NMAKE -F VC6.mak Clean All Compile Stlport, if there is no error, it is successful. I have been a 5.0 version of Stlport, there is no compilation here, I have to use 4.6.2. After all, 5.0 is not official version.

Open VC, Tools-> Options-> Directories, select include files, join D: / bin / vc6 / vc98 / stlport / stlport Select Lib Files, add D: / Bin / VC6 / VC98 / STLPORT / LIB and tune them To the forefront, when you don't want to use STLPORT STL, it is possible to adjust to the STL of the VC.

Compile a test program, this program comes with the STL that comes with VC, but Stlport can

#include #include

Using namespace std;

INT main () {const Int arraysize = 7; int @ [[arraysize] = {0, 1, 2, 3, 4, 5, 6}; Vector v (IA, IA arraysize); Deque D (IA, IA Arraysize); Return 0;}

ReferenceHttp://blog.9cbs.net/li_yadan/archive/2004/08/20/20185.aspx

转载请注明原文地址:https://www.9cbs.com/read-112133.html

New Post(0)