Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi, I have a static library compilation problem, How to use libcre2.a at compilation time? #16

Closed
fan-niu opened this issue Jul 25, 2018 · 2 comments

Comments

@fan-niu
Copy link

fan-niu commented Jul 25, 2018

Hi marcomaggi, I wrote a test program that uses static libraries(libcre2.a) directly at compile time. The program terminates during execution. How do I use static libraries(libcre2.a) to compile programs?

this is my compile command:
g++ test.cc libcre2.a libre2.a -lpthread

thank you for your help!

@marcomaggi
Copy link
Owner

cre2 is a C language library; you are using g++ which is a C++ language compiler. Is this the problem? What kind of error are you getting? Are the directories in which the libraries are installed in the search path of the compiler (that is: are you missing some -L command line options)?

@fan-niu
Copy link
Author

fan-niu commented Jul 26, 2018

First of all, thank you for your help. My main meaning is how to make the program run correctly under the static library libcre2.a?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants