Beginner problem with Mnemosyne
Torbjorn Tornkvist
tobbe@REDACTED
Fri Apr 9 04:43:57 CEST 1999
> I've just started playing with Mnesia, but I'm having a small problem
> with some code based on the provided examples. On the function:
You must insert the following include directive (put it where
your other '-include'-directives are) in your company.erl program.
-include_lib("mnemosyne/include/mnemosyne.hrl").
Then it works:
-----------------------------------------------------
unix> erl -mnesia_dir `pwd`
Erlang (BEAM) emulator version 47.4.1
Eshell V47.4.1 (abort with ^G)
1> mnesia:create_schema([node()]).
ok
2> mnesia:start().
ok
3> c(company).
{ok,company}
4> company:init().
{atomic,ok}
5> company:insert_me().
{atomic,ok}
6> company:get_me().
{atomic,[luke]}
7>
-----------------------------------------------------
Cheers /Tobbe
More information about the erlang-questions
mailing list