mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
Updated install docs.
[SVN r18494]
This commit is contained in:
@ -67,14 +67,14 @@
|
|||||||
depends upon the version of Borland's tools you are using) the .lib and dll
|
depends upon the version of Borland's tools you are using) the .lib and dll
|
||||||
files will be in a sub-directory called bcb4 or bcb5 depending upon the
|
files will be in a sub-directory called bcb4 or bcb5 depending upon the
|
||||||
makefile used. To install the libraries into your development system use:</P>
|
makefile used. To install the libraries into your development system use:</P>
|
||||||
<P>make -fbcb5.mak install</P>
|
<PRE>make -fbcb5.mak install</PRE>
|
||||||
<P>library files will be copied to <BCROOT>/lib and the dll's to
|
<P>library files will be copied to <BCROOT>/lib and the dll's to
|
||||||
<BCROOT>/bin, where <BCROOT> corresponds to the install path of
|
<BCROOT>/bin, where <BCROOT> corresponds to the install path of
|
||||||
your Borland C++ tools.
|
your Borland C++ tools.
|
||||||
</P>
|
</P>
|
||||||
<P>You may also remove temporary files created during the build process (excluding
|
<P>You may also remove temporary files created during the build process (excluding
|
||||||
lib and dll files) by using:</P>
|
lib and dll files) by using:</P>
|
||||||
<P>make -fbcb5.mak clean</P>
|
<PRE>make -fbcb5.mak clean</PRE>
|
||||||
<P>Finally when you use regex++ it is only necessary for you to add the
|
<P>Finally when you use regex++ it is only necessary for you to add the
|
||||||
<boost> root director to your list of include directories for that
|
<boost> root director to your list of include directories for that
|
||||||
project. It is not necessary for you to manually add a .lib file to the
|
project. It is not necessary for you to manually add a .lib file to the
|
||||||
@ -88,10 +88,12 @@
|
|||||||
command line tools may want to add a -D_NO_VCL to bcc32.cfg in order to set
|
command line tools may want to add a -D_NO_VCL to bcc32.cfg in order to set
|
||||||
this option permanently.
|
this option permanently.
|
||||||
</P>
|
</P>
|
||||||
<P>If you would prefer to do a static link to the regex libraries even when using
|
<P>If you would prefer to do a dynamic link to the regex libraries when using the
|
||||||
the dll runtime then define BOOST_REGEX_STATIC_LINK, and if you want to
|
dll runtime then define BOOST_REGEX_DYN_LINK (you must do this if you want to
|
||||||
suppress automatic linking altogether (and supply your own custom build of the
|
use boost.regex in multiple dll's), otherwise Boost.regex will be staically
|
||||||
lib) then define BOOST_REGEX_NO_LIB.</P>
|
linked by default. </P>
|
||||||
|
<P>If you want to suppress automatic linking altogether (and supply your own
|
||||||
|
custom build of the lib) then define BOOST_REGEX_NO_LIB.</P>
|
||||||
<P>If you are building with C++ Builder 6, you will find that
|
<P>If you are building with C++ Builder 6, you will find that
|
||||||
<boost/regex.hpp> can not be used in a pre-compiled header (the actual
|
<boost/regex.hpp> can not be used in a pre-compiled header (the actual
|
||||||
problem is in <locale> which gets included by <boost/regex.hpp>),
|
problem is in <locale> which gets included by <boost/regex.hpp>),
|
||||||
@ -111,17 +113,16 @@
|
|||||||
<P>Select the correct makefile - vc6.mak for "vanilla" Visual C++ 6 or
|
<P>Select the correct makefile - vc6.mak for "vanilla" Visual C++ 6 or
|
||||||
vc6-stlport.mak if you are using STLPort.</P>
|
vc6-stlport.mak if you are using STLPort.</P>
|
||||||
<P>Invoke the makefile like this:</P>
|
<P>Invoke the makefile like this:</P>
|
||||||
<P>nmake -fvc6.mak</P>
|
<PRE>nmake -fvc6.mak</PRE>
|
||||||
<P>You will now have a collection of lib and dll files in a "vc6" subdirectory, to
|
<P>You will now have a collection of lib and dll files in a "vc6" subdirectory, to
|
||||||
install these into your development system use:</P>
|
install these into your development system use:</P>
|
||||||
<P>nmake -fvc6.mak install</P>
|
<PRE>nmake -fvc6.mak install</PRE>
|
||||||
<P>The lib files will be copied to your <VC6>\lib directory and the dll
|
<P>The lib files will be copied to your <VC6>\lib directory and the dll
|
||||||
files to <VC6>\bin, where <VC6> is the root of your Visual C++ 6
|
files to <VC6>\bin, where <VC6> is the root of your Visual C++ 6
|
||||||
installation.</P>
|
installation.</P>
|
||||||
<P>You can delete all the temporary files created during the build (excluding lib
|
<P>You can delete all the temporary files created during the build (excluding lib
|
||||||
and dll files) using:</P>
|
and dll files) using:</P>
|
||||||
<P>nmake -fvc6.mak clean
|
<PRE>nmake -fvc6.mak clean </PRE>
|
||||||
</P>
|
|
||||||
<P>Finally when you use regex++ it is only necessary for you to add the
|
<P>Finally when you use regex++ it is only necessary for you to add the
|
||||||
<boost> root directory to your list of include directories for that
|
<boost> root directory to your list of include directories for that
|
||||||
project. It is not necessary for you to manually add a .lib file to the
|
project. It is not necessary for you to manually add a .lib file to the
|
||||||
@ -130,42 +131,45 @@
|
|||||||
</P>
|
</P>
|
||||||
<P>
|
<P>
|
||||||
Note that if you want to dynamically link to the regex library when using the
|
Note that if you want to dynamically link to the regex library when using the
|
||||||
dynamic C++ runtime, define BOOST_REGEX_DYN_LINK when building your project. If
|
dynamic C++ runtime, define BOOST_REGEX_DYN_LINK when building your project.</P>
|
||||||
you want to add the source directly to your project then define
|
<P>If you want to add the source directly to your project then define
|
||||||
BOOST_REGEX_NO_LIB to disable automatic library selection.</P>
|
BOOST_REGEX_NO_LIB to disable automatic library selection.</P>
|
||||||
<P><STRONG><I>Important</I></STRONG><EM>: there have been some reports of
|
<P>There are several important caveats to remember when using boost.regex with
|
||||||
compiler-optimization bugs affecting this library, (particularly with VC6
|
Microsoft's Compiler:</P>
|
||||||
versions prior to service patch 5) the workaround is to build the library using
|
<UL>
|
||||||
/Oityb1 rather than /O2. That is to use all optimization settings except /Oa.
|
<LI>
|
||||||
This problem is reported to affect some standard library code as well (in fact
|
There have been some reports of compiler-optimization bugs affecting this
|
||||||
I'm not sure if the problem is with the regex code or the underlying standard
|
library, (particularly with VC6 versions prior to service patch 5) the
|
||||||
library), so it's probably worthwhile applying this workaround in normal
|
workaround is to build the library using /Oityb1 rather than /O2. That is to
|
||||||
practice in any case.</EM></P>
|
use all optimization settings except /Oa. This problem is reported to affect
|
||||||
<P>Note: if you have replaced the C++ standard library that comes with VC6, then
|
some standard library code as well (in fact I'm not sure if the problem is with
|
||||||
when you build the library you must ensure that the environment variables
|
the regex code or the underlying standard library), so it's probably worthwhile
|
||||||
"INCLUDE" and "LIB" have been updated to reflect the include and library paths
|
applying this workaround in normal practice in any case.</LI>
|
||||||
for the new library - see vcvars32.bat (part of your Visual Studio
|
<LI>
|
||||||
installation) for more details. Alternatively if STLPort is in c:/stlport then
|
If you have replaced the C++ standard library that comes with VC6, then when
|
||||||
you could use:</P>
|
you build the library you must ensure that the environment variables "INCLUDE"
|
||||||
<P>nmake INCLUDES="-Ic:/stlport/stlport" XLFLAGS="/LIBPATH:c:/stlport/lib"
|
and "LIB" have been updated to reflect the include and library paths for the
|
||||||
-fvc6-stlport.mak</P>
|
new library - see vcvars32.bat (part of your Visual Studio installation) for
|
||||||
<P>If you are building with the full STLPort v4.x, then use the vc6-stlport.mak
|
more details.
|
||||||
file provided and set the environment variable STLPORT_PATH to point to the
|
</LI>
|
||||||
location of your STLport installation (Note that the full STLPort libraries
|
<LI>
|
||||||
appear not to support single-thread static builds).
|
If you are building with the full STLPort v4.x, then use the vc6-stlport.mak
|
||||||
<BR>
|
file provided and set the environment variable STLPORT_PATH to point to the
|
||||||
|
location of your STLPort installation (Note that the full STLPort libraries
|
||||||
<BR>
|
appear not to support single-thread static builds).</LI>
|
||||||
If you are building your application with /Zc:wchar_t then you will need to
|
<LI>
|
||||||
modify the makefile to add /Zc:wchar_t before building the library.
|
If you are building your application with /Zc:wchar_t then you will need to
|
||||||
</P>
|
modify the makefile to add /Zc:wchar_t before building the library.
|
||||||
|
</LI>
|
||||||
|
</UL>
|
||||||
<P><B><A name="gcc"></A>GCC(2.95 and 3.x)</B>
|
<P><B><A name="gcc"></A>GCC(2.95 and 3.x)</B>
|
||||||
</P>
|
</P>
|
||||||
<P>There is a conservative makefile for the g++ compiler. From the command prompt
|
<P>You can build with gcc using the normal boost Jamfile in
|
||||||
change to the <boost>/libs/regex/build directory and type:
|
<boost>/libs/regex/build, alternatively there is a conservative makefile
|
||||||
</P>
|
for the g++ compiler. From the command prompt change to the
|
||||||
<P>make -fgcc.mak
|
<boost>/libs/regex/build directory and type:
|
||||||
</P>
|
</P>
|
||||||
|
<PRE>make -fgcc.mak </PRE>
|
||||||
<P>At the end of the build process you should have a gcc sub-directory containing
|
<P>At the end of the build process you should have a gcc sub-directory containing
|
||||||
release and debug versions of the library (libboost_regex.a and
|
release and debug versions of the library (libboost_regex.a and
|
||||||
libboost_regex_debug.a). When you build projects that use regex++, you will
|
libboost_regex_debug.a). When you build projects that use regex++, you will
|
||||||
@ -174,7 +178,7 @@
|
|||||||
files.
|
files.
|
||||||
</P>
|
</P>
|
||||||
<P>There is also a makefile to build the library as a shared library:</P>
|
<P>There is also a makefile to build the library as a shared library:</P>
|
||||||
<P>make -fgcc-shared.mak</P>
|
<PRE>make -fgcc-shared.mak</PRE>
|
||||||
<P>which will build libboost_regex.so and libboost_regex_debug.so.</P>
|
<P>which will build libboost_regex.so and libboost_regex_debug.so.</P>
|
||||||
<P>Both of the these makefiles support the following environment variables:</P>
|
<P>Both of the these makefiles support the following environment variables:</P>
|
||||||
<P>CXXFLAGS: extra compiler options - note that this applies to both the debug and
|
<P>CXXFLAGS: extra compiler options - note that this applies to both the debug and
|
||||||
@ -189,8 +193,7 @@
|
|||||||
<P>There is a makefile for the sun (6.1) compiler (C++ version 3.12). From the
|
<P>There is a makefile for the sun (6.1) compiler (C++ version 3.12). From the
|
||||||
command prompt change to the <boost>/libs/regex/build directory and type:
|
command prompt change to the <boost>/libs/regex/build directory and type:
|
||||||
</P>
|
</P>
|
||||||
<P>dmake -f sunpro.mak
|
<PRE>dmake -f sunpro.mak </PRE>
|
||||||
</P>
|
|
||||||
<P>At the end of the build process you should have a sunpro sub-directory
|
<P>At the end of the build process you should have a sunpro sub-directory
|
||||||
containing single and multithread versions of the library (libboost_regex.a,
|
containing single and multithread versions of the library (libboost_regex.a,
|
||||||
libboost_regex.so, libboost_regex_mt.a and libboost_regex_mt.so). When you
|
libboost_regex.so, libboost_regex_mt.a and libboost_regex_mt.so). When you
|
||||||
@ -207,15 +210,18 @@
|
|||||||
<P>LIBSUFFIX: a suffix to mangle the library name with (defaults to nothing).</P>
|
<P>LIBSUFFIX: a suffix to mangle the library name with (defaults to nothing).</P>
|
||||||
<P>This makefile does not set any architecture specific options like -xarch=v9,
|
<P>This makefile does not set any architecture specific options like -xarch=v9,
|
||||||
you can set these by defining the appropriate macros, for example:</P>
|
you can set these by defining the appropriate macros, for example:</P>
|
||||||
<P>dmake CXXFLAGS="-xarch=v9" LDFLAGS="-xarch=v9" LIBSUFFIX="_v9" -f sunpro.mak</P>
|
<PRE>dmake CXXFLAGS="-xarch=v9" LDFLAGS="-xarch=v9" LIBSUFFIX="_v9" -f sunpro.mak</PRE>
|
||||||
<P>will build v9 variants of the regex library named libboost_regex_v9.a etc.</P>
|
<P>will build v9 variants of the regex library named libboost_regex_v9.a etc.</P>
|
||||||
<P><B><A name="other"></A>Other compilers:</B>
|
<P><B><A name="other"></A>Other compilers:</B>
|
||||||
</P>
|
</P>
|
||||||
<P>There is a generic makefile (<A href="build/generic.mak">generic.mak</A>)
|
<P>There is a generic makefile (<A href="build/generic.mak">generic.mak</A>
|
||||||
provided in <boost-root>/libs/regex/build - see that makefile for details
|
) provided in <boost-root>/libs/regex/build - see that makefile for
|
||||||
of environment variables that need to be set before use. Alternatively you can
|
details of environment variables that need to be set before use.
|
||||||
using the <A href="../../tools/build/index.html">Jam based build system</A>. If
|
<P>
|
||||||
you need to configure the library for your platform, then refer to the <A href="../config/config.htm">
|
Alternatively you can using the <A href="../../tools/build/index.html">Jam based
|
||||||
|
build system</A>: cd into <boost>/libs/regex/build and run:<PRE>bjam -sTOOLS=mytoolset</PRE>
|
||||||
|
<P>
|
||||||
|
If you need to configure the library for your platform, then refer to the <A href="../config/config.htm">
|
||||||
config library documentation</A>
|
config library documentation</A>
|
||||||
.
|
.
|
||||||
<P>
|
<P>
|
||||||
|
108
doc/install.html
108
doc/install.html
@ -67,14 +67,14 @@
|
|||||||
depends upon the version of Borland's tools you are using) the .lib and dll
|
depends upon the version of Borland's tools you are using) the .lib and dll
|
||||||
files will be in a sub-directory called bcb4 or bcb5 depending upon the
|
files will be in a sub-directory called bcb4 or bcb5 depending upon the
|
||||||
makefile used. To install the libraries into your development system use:</P>
|
makefile used. To install the libraries into your development system use:</P>
|
||||||
<P>make -fbcb5.mak install</P>
|
<PRE>make -fbcb5.mak install</PRE>
|
||||||
<P>library files will be copied to <BCROOT>/lib and the dll's to
|
<P>library files will be copied to <BCROOT>/lib and the dll's to
|
||||||
<BCROOT>/bin, where <BCROOT> corresponds to the install path of
|
<BCROOT>/bin, where <BCROOT> corresponds to the install path of
|
||||||
your Borland C++ tools.
|
your Borland C++ tools.
|
||||||
</P>
|
</P>
|
||||||
<P>You may also remove temporary files created during the build process (excluding
|
<P>You may also remove temporary files created during the build process (excluding
|
||||||
lib and dll files) by using:</P>
|
lib and dll files) by using:</P>
|
||||||
<P>make -fbcb5.mak clean</P>
|
<PRE>make -fbcb5.mak clean</PRE>
|
||||||
<P>Finally when you use regex++ it is only necessary for you to add the
|
<P>Finally when you use regex++ it is only necessary for you to add the
|
||||||
<boost> root director to your list of include directories for that
|
<boost> root director to your list of include directories for that
|
||||||
project. It is not necessary for you to manually add a .lib file to the
|
project. It is not necessary for you to manually add a .lib file to the
|
||||||
@ -88,10 +88,12 @@
|
|||||||
command line tools may want to add a -D_NO_VCL to bcc32.cfg in order to set
|
command line tools may want to add a -D_NO_VCL to bcc32.cfg in order to set
|
||||||
this option permanently.
|
this option permanently.
|
||||||
</P>
|
</P>
|
||||||
<P>If you would prefer to do a static link to the regex libraries even when using
|
<P>If you would prefer to do a dynamic link to the regex libraries when using the
|
||||||
the dll runtime then define BOOST_REGEX_STATIC_LINK, and if you want to
|
dll runtime then define BOOST_REGEX_DYN_LINK (you must do this if you want to
|
||||||
suppress automatic linking altogether (and supply your own custom build of the
|
use boost.regex in multiple dll's), otherwise Boost.regex will be staically
|
||||||
lib) then define BOOST_REGEX_NO_LIB.</P>
|
linked by default. </P>
|
||||||
|
<P>If you want to suppress automatic linking altogether (and supply your own
|
||||||
|
custom build of the lib) then define BOOST_REGEX_NO_LIB.</P>
|
||||||
<P>If you are building with C++ Builder 6, you will find that
|
<P>If you are building with C++ Builder 6, you will find that
|
||||||
<boost/regex.hpp> can not be used in a pre-compiled header (the actual
|
<boost/regex.hpp> can not be used in a pre-compiled header (the actual
|
||||||
problem is in <locale> which gets included by <boost/regex.hpp>),
|
problem is in <locale> which gets included by <boost/regex.hpp>),
|
||||||
@ -111,17 +113,16 @@
|
|||||||
<P>Select the correct makefile - vc6.mak for "vanilla" Visual C++ 6 or
|
<P>Select the correct makefile - vc6.mak for "vanilla" Visual C++ 6 or
|
||||||
vc6-stlport.mak if you are using STLPort.</P>
|
vc6-stlport.mak if you are using STLPort.</P>
|
||||||
<P>Invoke the makefile like this:</P>
|
<P>Invoke the makefile like this:</P>
|
||||||
<P>nmake -fvc6.mak</P>
|
<PRE>nmake -fvc6.mak</PRE>
|
||||||
<P>You will now have a collection of lib and dll files in a "vc6" subdirectory, to
|
<P>You will now have a collection of lib and dll files in a "vc6" subdirectory, to
|
||||||
install these into your development system use:</P>
|
install these into your development system use:</P>
|
||||||
<P>nmake -fvc6.mak install</P>
|
<PRE>nmake -fvc6.mak install</PRE>
|
||||||
<P>The lib files will be copied to your <VC6>\lib directory and the dll
|
<P>The lib files will be copied to your <VC6>\lib directory and the dll
|
||||||
files to <VC6>\bin, where <VC6> is the root of your Visual C++ 6
|
files to <VC6>\bin, where <VC6> is the root of your Visual C++ 6
|
||||||
installation.</P>
|
installation.</P>
|
||||||
<P>You can delete all the temporary files created during the build (excluding lib
|
<P>You can delete all the temporary files created during the build (excluding lib
|
||||||
and dll files) using:</P>
|
and dll files) using:</P>
|
||||||
<P>nmake -fvc6.mak clean
|
<PRE>nmake -fvc6.mak clean </PRE>
|
||||||
</P>
|
|
||||||
<P>Finally when you use regex++ it is only necessary for you to add the
|
<P>Finally when you use regex++ it is only necessary for you to add the
|
||||||
<boost> root directory to your list of include directories for that
|
<boost> root directory to your list of include directories for that
|
||||||
project. It is not necessary for you to manually add a .lib file to the
|
project. It is not necessary for you to manually add a .lib file to the
|
||||||
@ -130,42 +131,45 @@
|
|||||||
</P>
|
</P>
|
||||||
<P>
|
<P>
|
||||||
Note that if you want to dynamically link to the regex library when using the
|
Note that if you want to dynamically link to the regex library when using the
|
||||||
dynamic C++ runtime, define BOOST_REGEX_DYN_LINK when building your project. If
|
dynamic C++ runtime, define BOOST_REGEX_DYN_LINK when building your project.</P>
|
||||||
you want to add the source directly to your project then define
|
<P>If you want to add the source directly to your project then define
|
||||||
BOOST_REGEX_NO_LIB to disable automatic library selection.</P>
|
BOOST_REGEX_NO_LIB to disable automatic library selection.</P>
|
||||||
<P><STRONG><I>Important</I></STRONG><EM>: there have been some reports of
|
<P>There are several important caveats to remember when using boost.regex with
|
||||||
compiler-optimization bugs affecting this library, (particularly with VC6
|
Microsoft's Compiler:</P>
|
||||||
versions prior to service patch 5) the workaround is to build the library using
|
<UL>
|
||||||
/Oityb1 rather than /O2. That is to use all optimization settings except /Oa.
|
<LI>
|
||||||
This problem is reported to affect some standard library code as well (in fact
|
There have been some reports of compiler-optimization bugs affecting this
|
||||||
I'm not sure if the problem is with the regex code or the underlying standard
|
library, (particularly with VC6 versions prior to service patch 5) the
|
||||||
library), so it's probably worthwhile applying this workaround in normal
|
workaround is to build the library using /Oityb1 rather than /O2. That is to
|
||||||
practice in any case.</EM></P>
|
use all optimization settings except /Oa. This problem is reported to affect
|
||||||
<P>Note: if you have replaced the C++ standard library that comes with VC6, then
|
some standard library code as well (in fact I'm not sure if the problem is with
|
||||||
when you build the library you must ensure that the environment variables
|
the regex code or the underlying standard library), so it's probably worthwhile
|
||||||
"INCLUDE" and "LIB" have been updated to reflect the include and library paths
|
applying this workaround in normal practice in any case.</LI>
|
||||||
for the new library - see vcvars32.bat (part of your Visual Studio
|
<LI>
|
||||||
installation) for more details. Alternatively if STLPort is in c:/stlport then
|
If you have replaced the C++ standard library that comes with VC6, then when
|
||||||
you could use:</P>
|
you build the library you must ensure that the environment variables "INCLUDE"
|
||||||
<P>nmake INCLUDES="-Ic:/stlport/stlport" XLFLAGS="/LIBPATH:c:/stlport/lib"
|
and "LIB" have been updated to reflect the include and library paths for the
|
||||||
-fvc6-stlport.mak</P>
|
new library - see vcvars32.bat (part of your Visual Studio installation) for
|
||||||
<P>If you are building with the full STLPort v4.x, then use the vc6-stlport.mak
|
more details.
|
||||||
file provided and set the environment variable STLPORT_PATH to point to the
|
</LI>
|
||||||
location of your STLport installation (Note that the full STLPort libraries
|
<LI>
|
||||||
appear not to support single-thread static builds).
|
If you are building with the full STLPort v4.x, then use the vc6-stlport.mak
|
||||||
<BR>
|
file provided and set the environment variable STLPORT_PATH to point to the
|
||||||
|
location of your STLPort installation (Note that the full STLPort libraries
|
||||||
<BR>
|
appear not to support single-thread static builds).</LI>
|
||||||
If you are building your application with /Zc:wchar_t then you will need to
|
<LI>
|
||||||
modify the makefile to add /Zc:wchar_t before building the library.
|
If you are building your application with /Zc:wchar_t then you will need to
|
||||||
</P>
|
modify the makefile to add /Zc:wchar_t before building the library.
|
||||||
|
</LI>
|
||||||
|
</UL>
|
||||||
<P><B><A name="gcc"></A>GCC(2.95 and 3.x)</B>
|
<P><B><A name="gcc"></A>GCC(2.95 and 3.x)</B>
|
||||||
</P>
|
</P>
|
||||||
<P>There is a conservative makefile for the g++ compiler. From the command prompt
|
<P>You can build with gcc using the normal boost Jamfile in
|
||||||
change to the <boost>/libs/regex/build directory and type:
|
<boost>/libs/regex/build, alternatively there is a conservative makefile
|
||||||
</P>
|
for the g++ compiler. From the command prompt change to the
|
||||||
<P>make -fgcc.mak
|
<boost>/libs/regex/build directory and type:
|
||||||
</P>
|
</P>
|
||||||
|
<PRE>make -fgcc.mak </PRE>
|
||||||
<P>At the end of the build process you should have a gcc sub-directory containing
|
<P>At the end of the build process you should have a gcc sub-directory containing
|
||||||
release and debug versions of the library (libboost_regex.a and
|
release and debug versions of the library (libboost_regex.a and
|
||||||
libboost_regex_debug.a). When you build projects that use regex++, you will
|
libboost_regex_debug.a). When you build projects that use regex++, you will
|
||||||
@ -174,7 +178,7 @@
|
|||||||
files.
|
files.
|
||||||
</P>
|
</P>
|
||||||
<P>There is also a makefile to build the library as a shared library:</P>
|
<P>There is also a makefile to build the library as a shared library:</P>
|
||||||
<P>make -fgcc-shared.mak</P>
|
<PRE>make -fgcc-shared.mak</PRE>
|
||||||
<P>which will build libboost_regex.so and libboost_regex_debug.so.</P>
|
<P>which will build libboost_regex.so and libboost_regex_debug.so.</P>
|
||||||
<P>Both of the these makefiles support the following environment variables:</P>
|
<P>Both of the these makefiles support the following environment variables:</P>
|
||||||
<P>CXXFLAGS: extra compiler options - note that this applies to both the debug and
|
<P>CXXFLAGS: extra compiler options - note that this applies to both the debug and
|
||||||
@ -189,8 +193,7 @@
|
|||||||
<P>There is a makefile for the sun (6.1) compiler (C++ version 3.12). From the
|
<P>There is a makefile for the sun (6.1) compiler (C++ version 3.12). From the
|
||||||
command prompt change to the <boost>/libs/regex/build directory and type:
|
command prompt change to the <boost>/libs/regex/build directory and type:
|
||||||
</P>
|
</P>
|
||||||
<P>dmake -f sunpro.mak
|
<PRE>dmake -f sunpro.mak </PRE>
|
||||||
</P>
|
|
||||||
<P>At the end of the build process you should have a sunpro sub-directory
|
<P>At the end of the build process you should have a sunpro sub-directory
|
||||||
containing single and multithread versions of the library (libboost_regex.a,
|
containing single and multithread versions of the library (libboost_regex.a,
|
||||||
libboost_regex.so, libboost_regex_mt.a and libboost_regex_mt.so). When you
|
libboost_regex.so, libboost_regex_mt.a and libboost_regex_mt.so). When you
|
||||||
@ -207,15 +210,18 @@
|
|||||||
<P>LIBSUFFIX: a suffix to mangle the library name with (defaults to nothing).</P>
|
<P>LIBSUFFIX: a suffix to mangle the library name with (defaults to nothing).</P>
|
||||||
<P>This makefile does not set any architecture specific options like -xarch=v9,
|
<P>This makefile does not set any architecture specific options like -xarch=v9,
|
||||||
you can set these by defining the appropriate macros, for example:</P>
|
you can set these by defining the appropriate macros, for example:</P>
|
||||||
<P>dmake CXXFLAGS="-xarch=v9" LDFLAGS="-xarch=v9" LIBSUFFIX="_v9" -f sunpro.mak</P>
|
<PRE>dmake CXXFLAGS="-xarch=v9" LDFLAGS="-xarch=v9" LIBSUFFIX="_v9" -f sunpro.mak</PRE>
|
||||||
<P>will build v9 variants of the regex library named libboost_regex_v9.a etc.</P>
|
<P>will build v9 variants of the regex library named libboost_regex_v9.a etc.</P>
|
||||||
<P><B><A name="other"></A>Other compilers:</B>
|
<P><B><A name="other"></A>Other compilers:</B>
|
||||||
</P>
|
</P>
|
||||||
<P>There is a generic makefile (<A href="build/generic.mak">generic.mak</A>)
|
<P>There is a generic makefile (<A href="build/generic.mak">generic.mak</A>
|
||||||
provided in <boost-root>/libs/regex/build - see that makefile for details
|
) provided in <boost-root>/libs/regex/build - see that makefile for
|
||||||
of environment variables that need to be set before use. Alternatively you can
|
details of environment variables that need to be set before use.
|
||||||
using the <A href="../../tools/build/index.html">Jam based build system</A>. If
|
<P>
|
||||||
you need to configure the library for your platform, then refer to the <A href="../config/config.htm">
|
Alternatively you can using the <A href="../../tools/build/index.html">Jam based
|
||||||
|
build system</A>: cd into <boost>/libs/regex/build and run:<PRE>bjam -sTOOLS=mytoolset</PRE>
|
||||||
|
<P>
|
||||||
|
If you need to configure the library for your platform, then refer to the <A href="../config/config.htm">
|
||||||
config library documentation</A>
|
config library documentation</A>
|
||||||
.
|
.
|
||||||
<P>
|
<P>
|
||||||
|
Reference in New Issue
Block a user