Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to make a library with Open dylan?

69 views
Skip to first unread message

berndt

unread,
Jan 21, 2012, 5:35:56 PM1/21/12
to
dear cld,

I make a library with open-dylan but I cannot use it, it seems that
some files are not found by the compiler. I use Open Dylan 2011-1
onFreeBSD 8.2.

I made a project 'mylib' with the three files :
- mylib.dylan with the code of my-brand-new-method,
- mylib-library.dylan, wher I export my-brand-new-method,
- mylib.lid sort of Makefile.

mylib-library.dylan is like that :

Module: dylan-user
Synopsis: What is this?
Author: berndt
Comment: Created 2012-01-16
Copyright: no copyright
that's bad code
License: no licence
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND

define library mylib
use common-dylan;
use system;
export
mylib;
end library mylib;

define module mylib
use common-dylan;
use simple-io;
use operating-system;
create my-brand-new-method;
end module mylib;

It compiles fine.

If I want to use it in another project, I had to make a symolic link
~/Open-Dylan/build/mylib/mylib.ddb in ~/Open-Dylan/databases.

When I compile the new project, I get an error like that :

Internal error: Link failed: File mylib.mkf does not exist

And several of these warnings :

Warning:

Project mylib is read-only and cannot be compiled
but it depends on modified project dylan
warning: Project mylib is read-only and cannot be compiled
but it depends on modified project dylan

I delete all the files related to these projects in ~/Open-Dylan but it
does nothing.

Can you help me?

Thanks,

berndt.

cgay

unread,
Jan 27, 2012, 10:18:20 AM1/27/12
to
Hi berndt. I guess you need to setup registries, which tell the
compiler where to find your used projects. You definitely shouldn't
need to copy any files around manually. Take a look at this freshly
written Getting Started documentation (especially the section on
registries) and let us know if you still have trouble.

http://opendylan.org/documentation/getting-started/console.html

-Carl

berndt

unread,
Jan 27, 2012, 8:26:05 PM1/27/12
to
On Fri, 27 Jan 2012 07:18:20 -0800 (PST)
cgay <car...@gmail.com> wrote:


>
> Hi berndt. I guess you need to setup registries, which tell the
> compiler where to find your used projects. You definitely shouldn't
> need to copy any files around manually. Take a look at this freshly
> written Getting Started documentation (especially the section on
> registries) and let us know if you still have trouble.
>
> http://opendylan.org/documentation/getting-started/console.html
>
> -Carl

It works!

Thank you.

berndt

unread,
Jan 27, 2012, 8:28:21 PM1/27/12
to
> Hi berndt. I guess you need to setup registries, which tell the
> compiler where to find your used projects. You definitely shouldn't
> need to copy any files around manually. Take a look at this freshly
> written Getting Started documentation (especially the section on
> registries) and let us know if you still have trouble.
>
> http://opendylan.org/documentation/getting-started/console.html
>
> -Carl

I first did not read that doument because of this :

Describes Open Dylan’s interactive development environment. This is
only useful if you are using the Open Dylan IDE on Windows.

I am not on Windows.

berndt

Hannes Mehnert

unread,
Feb 10, 2012, 3:17:52 PM2/10/12
to
On Friday, January 27, 2012 8:28:21 PM UTC-5, berndt wrote:
> I first did not read that doument because of this :
>
> Describes Open Dylan’s interactive development environment. This is
> only useful if you are using the Open Dylan IDE on Windows.
>
> I am not on Windows.


Thanks for noticing that, I rephrased the text on our website.


Hannes
0 new messages