Thanks, your nm --demangle --dynamic --defined-only --extern-only path/to/libqpid-proton-cpp.so | grep reconnected tip is useful beyond this question as well.
On Fri, 9 Jun 2023 at 11:09, Jiri Daněk <jda...@redhat.com> wrote: > On Thu, 8 Jun 2023 at 08:54, Tiaan Wessels <tiaanwess...@gmail.com> wrote: > > > > Hi, > > Trying to compile simple_send.cpp for 0.38.0 I get undefined reference to > > proton::connection::reconnected() const > > My link libraries are > > qpid-proton, qpid-proton-core, qpid-proton-cpp and qpid-proton-proactor > > I can't find any other libs to link against. Any ideas? > > Thanks > > On Fri, Jun 9, 2023 at 12:46 PM Robbie Gemmell <robbie.gemm...@gmail.com> > wrote: > > > C++ isnt my thing, so not sure...though the examples are being > > compiled ok in CI runs and were for 0.38.0. Perhaps give more details > > on your env and commands so someone with more of a clue can try to > > assist you. > > > > Try maybe investigating (and/or posting here) the failing > compilation command. If it is not printed and you use make to compile, try > > VERBOSE=1 make > > That way you can check that you are really linking the libraries you think > you are linking. > > Next, when you see qpid-proton-cpp truly is in the list of libraries > linked, you can try checking the symbol is present in the file (command > from > > https://stackoverflow.com/questions/34732/how-do-i-list-the-symbols-in-a-so-file/48122967#48122967 > ) > > nm --demangle --dynamic --defined-only --extern-only > path/to/libqpid-proton-cpp.so | grep reconnected > > and that should print something like > > 000000000002b760 T proton::connection::reconnected() const > > (the T after the address means that the symbol is in the text (code) > section and it is global (external)). > > Also, perhaps try 0.39.0 in case anything has actually changed. > > > > It can't hurt, I guess. > -- > Mit freundlichen Grüßen / Kind regards > Jiri Daněk >