Re: [pcre-dev] Static linking with pcre16 library

Página Principal
Apagar esta mensagem
Autor: Zoltán Herczeg
Data:  
Para: Алексей Павлов
CC: pcre-dev
Assunto: Re: [pcre-dev] Static linking with pcre16 library
Hi,

I know this issue. PCRE_STATIC was defined when you built the library, but not when you used it.

Regards,
Zoltan

"Алексей Павлов" <alexpux@???> írta:
>Hi everybody!>

I have builded pcre-8.32 as static with mingw-w64. When I building Qt with>
system-pcre I got errors:>
>

c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:928:>
undefined reference to `_imp__pcre16_free'>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:929:>
undefined reference to `_imp__pcre16_free_study'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function `ZN25QRegularExpressionPrivate14compilePatternEv':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:956:>
undefined reference to `_imp__pcre16_compile2'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function `ZN25QRegularExpressionPrivate14getPatternInfoEv':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:975:>
undefined reference to `_imp__pcre16_fullinfo'>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:979:>
undefined reference to `_imp__pcre16_fullinfo'>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:985:>
undefined reference to `_imp__pcre16_config'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function `ZN25QRegularExpressionPrivate15optimizePatternEv':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1106:>
undefined reference to `_imp__pcre16_study'>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1109:>
undefined reference to `_imp__pcre16_assign_jit_stack'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function>
`ZNK25QRegularExpressionPrivate19captureIndexForNameERK7QString':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1130:>
undefined reference to `_imp__pcre16_get_stringnumber'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function `pcre16SafeExec':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1150:>
undefined reference to `_imp__pcre16_exec'>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1157:>
undefined reference to `_imp__pcre16_exec'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function `ZN20QPcreJitStackPointerC1Ev':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1026:>
undefined reference to `_imp__pcre16_jit_stack_alloc'>
C:/QtSDK/Qt-builds/work/build-x32-s/qt-5.0.0/qtbase/lib\libQt5Cored.a(qregularexpression.o):>
In function `ZN20QPcreJitStackPointerD1Ev':>
c:\QtSDK\Qt-builds\work\build-x32-s\qt-5.0.0\qtbase\src\corelib/tools/qregularexpression.cpp:1034:>
undefined reference to `_imp__pcre16_jit_stack_free'>
collect2.exe: error: ld returned 1 exit status>
>

Is anybody know how can I solve this?>
-- >
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev >