B
B
bzick2016-10-03 23:31:20
C++ / C#
bzick, 2016-10-03 23:31:20

How to build a C project with libevent?

There is a C project that works with sockets asynchronously using the libevent installed on the system .
The project is configured to compile via autoconf (using m4) on unix systems only. I can't change the config.
On different systems there are different (read old) libevent, so I want to get rid of the system libevent and build it with "your own".
However, I can't figure out (not much experience on the subject) how to get autoconf to "eat" the libevent build setting so that the project builds with libevent? Or do I need to build libevent first, and then somehow build it into the project? How can I build a project with my own libevent?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evnuh, 2016-10-03
@evnuh

Do you need static linking, not dynamic? Read about the difference, collect statically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question