Comments (6)
can you provide more of the libtool output? does it work if you link the library statically into your program?
from restclient-cpp.
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.
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.
I have LT_INIT([win32-dll]) in my configure.ac
However, I'm still seeing the warning.
from restclient-cpp.
This should be solved with CMake.
from restclient-cpp.
closing this then. @instigatorofawe please reopen if the problem persists
from restclient-cpp.
Related Issues (20)
- IPv6 Bind
- Better cmake integration
- Disable SSL peer validation
- How to pass in parameters
- How to deal with this type of data?get method
- valgrind HOT 1
- Basic Post Request isn't working
- Proxy tunnel is enabled on all connections
- Request URL changes if I execute it in different thread
- How to set custom certificate in client? HOT 1
- Support body in delete
- Connection::post() seems to send deformed data
- RestClient::Response reassignment is null
- coud not support the asynchronous non-blocking send? curl_multi_perform
- does it support http2 now? HOT 1
- async get/post function support?
- librestclient-cpp.so HOT 1
- Release 0.5.3
- move release automation to GitHub actions
- Export symbols on Windows when building shared library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restclient-cpp.