Skip to content

How is these library thing working? #818

Answered by nickg
tmeissner asked this question in Q&A
Discussion options

You must be logged in to vote

The -L argument sets the search path so when NVC encounters library foo, and it doesn't already know about a library named "foo", it will search each entry in the search path for a directory named foo and then checks whether that directory contains a valid NVC library.

But here the library libvhdl is actually inside a directory called work so it won't be found just by looking through the search path. In that case you need to tell NVC explicitly where the library is using the --map argument e.g. --map libvhdl:work.

One issue here is that both libraries libvhdl and work end up in the same physical directory called work. I hadn't considered this case and I'm not sure whether it works correct…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@tmeissner
Comment options

@Anselmo95
Comment options

Comment options

You must be logged in to vote
2 replies
@tmeissner
Comment options

@nickg
Comment options

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