Giter Club home page Giter Club logo

Comments (6)

mrtazz avatar mrtazz commented on May 27, 2024

can you provide more of the libtool output? does it work if you link the library statically into your program?

from restclient-cpp.

instigatorofawe avatar instigatorofawe commented on May 27, 2024

Here's everything from when i run make:

m4 -I m4 -DM4_RESTCLIENT_VERSION=0.4.4-2-gad96b12-dirty version.h.m4 > include/restclient-cpp/version.h
make all-am
make[1]: Entering directory '/home/rliu14/Downloads/restclient-cpp'
m4 -I m4 -DM4_RESTCLIENT_VERSION=0.4.4-2-gad96b12-dirty version.h.m4 > include/restclient-cpp/version.h
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-restclient.lo -MD -MP -MF source/.deps/librestclient_cpp_la-restclient.Tpo -c -o source/librestclient_cpp_la-restclient.lo test -f 'source/restclient.cc' || echo './'source/restclient.cc
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-connection.lo -MD -MP -MF source/.deps/librestclient_cpp_la-connection.Tpo -c -o source/librestclient_cpp_la-connection.lo test -f 'source/connection.cc' || echo './'source/connection.cc
/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-helpers.lo -MD -MP -MF source/.deps/librestclient_cpp_la-helpers.Tpo -c -o source/librestclient_cpp_la-helpers.lo test -f 'source/helpers.cc' || echo './'source/helpers.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-restclient.lo -MD -MP -MF source/.deps/librestclient_cpp_la-restclient.Tpo -c source/restclient.cc -DDLL_EXPORT -DPIC -o source/.libs/librestclient_cpp_la-restclient.o
-DPIC -o source/.libs/librestclient_cpp_la-connection.oIC -g -O2 -MT source/librestclient_cpp_la-connection.lo -MD -MP -MF source/.deps/librestclient_cpp_la-connection.Tpo -c source/connection.cc -DDLL_EXPORT
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-helpers.lo -MD -MP -MF source/.deps/librestclient_cpp_la-helpers.Tpo -c source/helpers.cc -DDLL_EXPORT -DPIC -o source/.libs/librestclient_cpp_la-helpers.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-restclient.lo -MD -MP -MF source/.deps/librestclient_cpp_la-restclient.Tpo -c source/restclient.cc -o source/librestclient_cpp_la-restclient.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-helpers.lo -MD -MP -MF source/.deps/librestclient_cpp_la-helpers.Tpo -c source/helpers.cc -o source/librestclient_cpp_la-helpers.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I. -Iinclude -fPIC -g -O2 -MT source/librestclient_cpp_la-connection.lo -MD -MP -MF source/.deps/librestclient_cpp_la-connection.Tpo -c source/connection.cc -o source/librestclient_cpp_la-connection.o >/dev/null 2>&1
mv -f source/.deps/librestclient_cpp_la-restclient.Tpo source/.deps/librestclient_cpp_la-restclient.Plo
mv -f source/.deps/librestclient_cpp_la-helpers.Tpo source/.deps/librestclient_cpp_la-helpers.Plo
mv -f source/.deps/librestclient_cpp_la-connection.Tpo source/.deps/librestclient_cpp_la-connection.Plo
/bin/sh ./libtool --tag=CXX --mode=link g++ -fPIC -g -O2 -version-info 2:1:1 -o librestclient-cpp.la -rpath /usr/local/lib source/librestclient_cpp_la-restclient.lo source/librestclient_cpp_la-connection.lo source/librestclient_cpp_la-helpers.lo -lcurl
libtool: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared libraries; building static only
libtool: link: rm -fr .libs/librestclient-cpp.a .libs/librestclient-cpp.la .libs/librestclient-cpp.lai
libtool: link: ar cru .libs/librestclient-cpp.a source/librestclient_cpp_la-restclient.o source/librestclient_cpp_la-connection.o source/librestclient_cpp_la-helpers.o
libtool: link: ranlib .libs/librestclient-cpp.a
libtool: link: ( cd ".libs" && rm -f "librestclient-cpp.la" && ln -s "../librestclient-cpp.la" "librestclient-cpp.la" )
make[1]: Leaving directory '/home/rliu14/Downloads/restclient-cpp'

I've tried linking the .a file in /usr/local/lib, but that doesn't seem to work either. It still yields the same "undefined reference" errors.

from restclient-cpp.

mrtazz avatar mrtazz commented on May 27, 2024

It sounds like the configure file is missing a stanza for win32. Can you try adding win32-dll to LT_INIT as per this?

from restclient-cpp.

instigatorofawe avatar instigatorofawe commented on May 27, 2024

I have LT_INIT([win32-dll]) in my configure.ac
However, I'm still seeing the warning.

from restclient-cpp.

AronRubin avatar AronRubin commented on May 27, 2024

This should be solved with CMake.

from restclient-cpp.

mrtazz avatar mrtazz commented on May 27, 2024

closing this then. @instigatorofawe please reopen if the problem persists

from restclient-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.