Coder Social home page Coder Social logo

Comments (4)

karastojko avatar karastojko commented on May 28, 2024

Try something like:

g++ -std=c++17 -I ./include/ -I /opt/boost-1.75.0/include/ -L ./build/ -L /opt/boost-1.75.0/lib/ -L /usr/lib/x86_64-linux-gnu/ test.cpp -o test -lboost_system -lboost_regex -lboost_date_time  -lpthread -lcrypto -lssl -lmailio

Adjust the paths according to your setup.

from mailio.

CybersShell avatar CybersShell commented on May 28, 2024

After running the above command I get the following error:

/usr/bin/ld: /usr/local/lib/libmailio.a(dialog.cpp.o): undefined reference to symbol 'pthread_condattr_setclock@@GLIBC_2.3.3'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu//libpthread.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

It is weird because I am including the -lpthread link in the g++ command.
I have tried solutions mentioned in this thread https://stackoverflow.com/questions/19901934/libpthread-so-0-error-adding-symbols-dso-missing-from-command-line, but no joy so far.

from mailio.

karastojko avatar karastojko commented on May 28, 2024

I believe you are mixing the static library libmailio.a together with the shared pthread library. Can you build the shared library version libmailio.so and try again?

from mailio.

CybersShell avatar CybersShell commented on May 28, 2024

I am closing this issue as I am moving on to Go because I want to create a web mail app.

Also, the README should be updated, specifically this line in the CMAKE section:

Other available options are MAILIO_BUILD_SHARED_LIBRARY (by default is on, if turned off then the static library is built)...

This conflicts with the most recent commit c1d4d2f.

from mailio.

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.