⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 non-unix-use

📁 最新apache的源代码
💻
字号:
Compiling PCRE on non-Unix systems----------------------------------If you want to compile PCRE for a non-Unix system, note that it consistsentirely of code written in Standard C, and so should compile successfullyon any machine with a Standard C compiler and library, using normal compilingcommands to do the following:(1) Copy or rename the file config.in as config.h, and change the macros thatdefine HAVE_STRERROR and HAVE_MEMMOVE to define them as 1 rather than 0.Unfortunately, because of the way Unix autoconf works, the default setting hasto be 0. You may also want to make changes to other macros in config.h. Inparticular, if you want to force a specific value for newline, you can definethe NEWLINE macro. The default is to use '\n', thereby using whatever valueyour compiler gives to '\n'.(2) Copy or rename the file pcre.in as pcre.h, and change the macro definitionsfor PCRE_MAJOR, PCRE_MINOR, and PCRE_DATE near its start to the values set inconfigure.in.(3) Compile dftables.c as a stand-alone program, and then run it withthe standard output sent to chartables.c. This generates a set of standardcharacter tables.(4) Compile maketables.c, get.c, study.c and pcre.c and link them alltogether into an object library in whichever form your system keeps suchlibraries. This is the pcre library (chartables.c gets included by means of an#include directive).(5) Similarly, compile pcreposix.c and link it as the pcreposix library.(6) Compile the test program pcretest.c. This needs the functions in thepcre and pcreposix libraries when linking.(7) Run pcretest on the testinput files in the testdata directory, and checkthat the output matches the corresponding testoutput files. You must use the-i option when checking testinput2.If you have a system without "configure" but where you can use a Makefile, editMakefile.in to create Makefile, substituting suitable values for the variablesat the head of the file.Some help in building a Win32 DLL of PCRE in GnuWin32 environments wascontributed by Paul.Sokolovsky@technologist.com. These environments areMingw32 (http://www.xraylith.wisc.edu/~khan/software/gnu-win32/) andCygWin  (http://sourceware.cygnus.com/cygwin/). Paul comments:  For CygWin, set CFLAGS=-mno-cygwin, and do 'make dll'. You'll get  pcre.dll (containing pcreposix also), libpcre.dll.a, and dynamically  linked pgrep and pcretest. If you have /bin/sh, run RunTest (three  main test go ok, locale not supported).****

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -