Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I compile a project in C + +. The project uses a library PCRE. The project is not written by me. I run the SH-file. On Ubuntu 10.10 and 11.04 is compiled. At 11.10 - no.

This error occurs when:

g + + MorphGen.orst-Wl, - start-group -L/usr/local/lib-lpcrecpp -L/usr/local/lib-lpcre -L../LemmatizerLib /-lLemmatizerrst -L../AgramtabLib /-lAgramtabrst -L../GraphanLib /-lGraphanrst -L../StructDictLib /-lStructDictrst -L../MorphWizardLib /-lMorphWizardrst-Wl, - end-group-o MorphGen

Note that-lpcre and-lpcrecpp present.

Errors:

.. / MorphWizardLib / / libMorphWizardrst.a (pcre_rml.orst): In function `_ZN6RML_RE7CompileENS_6AnchorEPKh.constprop.41 ':
pcre_rml.cpp: (. text +0 x31): undefined reference to `pcre_compile '
pcre_rml.cpp: (. text +0 xa3): undefined reference to `pcre_compile '
.. / MorphWizardLib / / libMorphWizardrst.a (pcre_rml.orst): In function `RML_RE:: ~ RML_RE () ':
pcre_rml.cpp: (. text +0 x25d): undefined reference to `pcre_free '
pcre_rml.cpp: (. text +0 x26f): undefined reference to `pcre_free '
.. / MorphWizardLib / / libMorphWizardrst.a (pcre_rml.orst): In function `RML_RE:: Compile (RML_RE:: Anchor, unsigned char const *) ':
pcre_rml.cpp: (. text +0 x366): undefined reference to `pcre_compile '
pcre_rml.cpp: (. text +0 x3d4): undefined reference to `pcre_compile '
.. / MorphWizardLib / / libMorphWizardrst.a (pcre_rml.orst): In function `RML_RE:: TryMatch (pcrecpp:: StringPiece const &, int, RML_RE:: Anchor, int *, int) const ':
pcre_rml.cpp: (. text +0 x60f): undefined reference to `pcre_exec '
.. / MorphWizardLib / / libMorphWizardrst.a (pcre_rml.orst): In function `RML_RE:: NumberOfCapturingGroups () ':
pcre_rml.cpp: (. text +0 x2248): undefined reference to `pcre_fullinfo '
.. / MorphWizardLib / / libMorphWizardrst.a (pcre_rml.orst): In function `_GLOBAL__sub_I__Z17RmlPcreMakeTablesRSt6vectorIhSaIhEE17MorphLanguageEnum ':
pcre_rml.cpp: (. text.startup +0 x43): undefined reference to `pcrecpp:: Arg:: parse_null (char const *, int, void *) '
collect2: ld execution completed with return code 1
make: *** [MorphGen] Error 1
make: Leaving directory `/ home / petr / RML / Source / MorphGen '
Fail running make-C / home / petr / RML / Source / MorphGen mode = release!
share|improve this question
    
Maybe it is a similar issue to this: stackoverflow.com/questions/7755668/… Try to use GCC 4.4. –  Richard Żak Nov 29 '11 at 20:05
    
Hello, this question has no information and activity for a very long time. I am voting to close it for now. If by any reason you think this question is still viable or useful in anyways or that there is still a good chance it will be answered please flag it to a moderator or add a comment with the reasons why you want it open. Regards. –  nitstorm Feb 26 '12 at 3:55
    
Did you ever get a resolution to this problem? I'm seeing it now too. –  Drew Noakes Apr 27 '12 at 9:33
add comment

closed as too localized by bodhi.zazen, nitstorm, Marco Ceppi Feb 26 '12 at 14:52

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Sorry, but users of the Ask Ubuntu Stack Exchange tend to be Ubuntu enthusisasts and not programmers. I can't say your question doesn't belong here because it is related to Ubuntu, but your'e probably not going to get an answer here. You might want to try uploading the offending source code to the code review Stack Exchange and seeing if anyone can spot anything. Otherwise, Stack Overflow and Programming are two great Stack Exchange sites where your'e much more likely to get an answer to your question.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.