Hi James
Firstly, your library declaration is commented out and lacks a
semi-colon at the end. If this is how it appears in your code, then this
could be the cause of your problem. But i'll assume this is not the case.
When compiling in GHDL, you by default compile to a library called work.
You can change this using --work=dr_lib when compiling the library.
Then when compiling your code below to the work libary, you can tell it
where to look using --PDIR=location/of/dr_lib
These options are not visible when calling help with
ghdl -h
but are displayed by
ghdl -h -a
or
ghdl --options-help
You'll also find the manual useful, it's at
http://ghdl.free.fr/ghdl/index.html
Regards,
Richard
James R. Leitch wrote:
Hi,
I have tried using GHDL today for the first time, to compile some VHDL
developed previously in a ModelSim environment.
The code calls some user defined libraries, and fails on the line below:
e.g.
-- library dr_lib
use DR_LIB.SOURCE_PORT.PACKAGE.all;
What path does GHDL use to look for a user defined library?
Thanks for any help
/James
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss
--
Richard Brady
DSP Lab (Room E355)
Dept. E&E Engineering
Stellenbosch University Cel: +27 83 746 7073
7600 Tel: +27 21 808 4315
South Africa Eml: [EMAIL PROTECTED]
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss