How to compile the C example (using the static library) #957
-
Hello! Question of a beginner. I am trying without success the compile this C example. Here are the steps I followed. First I appended the line
Then I built the library with Then I copied libregex.a in the folder where is example.c. And I tried several commands to compile. My last attempt was this one:
I get this:
I tried with the release 1.0.0 and also with the latest code from the repository. Please could you tell me what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It's hard to say because I don't think you've given me a full reproduction of your issue. A full repro means including all inputs and commands you're running. That is, I should be able to take the commands and inputs you give me, run them on my machine and (hopefully) get the same error as you. Then I can better help you resolve the problem. But right now, I would for example need to guess as to the contents of Here's an example of what I would expect a reproduction to look like. In an empty directory:
I'll also note that your |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. I don't know why, your method doesn't work here (Linux Mageia 64-bit, GCC 10.4.0).
|
Beta Was this translation helpful? Give feedback.
-
OK, I think I found the right command.
Problem solved, thank you. |
Beta Was this translation helpful? Give feedback.
It's hard to say because I don't think you've given me a full reproduction of your issue. A full repro means including all inputs and commands you're running. That is, I should be able to take the commands and inputs you give me, run them on my machine and (hopefully) get the same error as you. Then I can better help you resolve the problem. But right now, I would for example need to guess as to the contents of
example.c
. And also how exactly you're building the library.Here's an example of what I would expect a reproduction to look like. In an empty directory: