Skip to content

How to compile the C example (using the static library) #957

Answered by BurntSushi
rchastain asked this question in Q&A
Discussion options

You must be logged in to vote

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:

$ git clone https://github.com/rust-lang/regex
$ cd regex/regex-capi
$ cargo build --release
$ cd ../..              
$ cp regex…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rchastain
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants