Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-187

Link error for Example

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.2
    • None
    • Example Code
    • None
    • CentOS 5.2

    Description

      On running Makefile I am getting following error
      /bin/sh ../../libtool --tag=CXX --mode=link g++ -g -O2 -o example example-main.o ../main/libactivemq-cpp.la /usr/local/apr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl /usr/local/apr/lib/libaprutil-1.la
      g++ g -O2 -o .libs/example example-main.o ../main/.libs/libactivemq-cpp.so -lexpat /usr/local/apr/lib/libaprutil-1.so /usr/local/apr/lib/libexpat.so /usr/local/apr/lib/libapr-1.so -luuid -lrt -lcrypt -lpthread -ldl -Wl,rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/apr/lib
      /usr/bin/ld: cannot find -lexpat
      collect2: ld returned 1 exit status
      make: *** [example] Error 1

      Everything under src/main is correctly compiled and linked. Issue is only with linking of Example files

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tabish Timothy A. Bish
            parikhamit Amit Parikh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment