[Xotcl] re: install problems
jim
jamesmc at localnet.com
Tue Dec 9 07:19:34 CET 2003
>hi-
>i did a zip binary distribution for windows
>xotcl-1.1.0-win32-tcl8.4.5.zip
>my tcl directory was in c:\tcl . when the install took place it tried
to put xotcl in c:\program files\tcl directory.
>since that is not where i originally installed tcl i copied the files
with the file manager back over to c:\tcl and its >subdirectories.
>i have an environment variable named tcllibpath that points to
c:\tcl\lib\xotcl. i moved the 4 include files over to c:>\tcl\include .
>the libxotcl1.1.dll resides now in my c:\tcl\lib directory.
>when i run this code in ASED it prints out "failure" as it is not
loaded properly. I am using version 8.4.
>set fail [catch [load libxotcl.dll]]
>if {$fail} {
>puts "failure"
>}
>i wanted to expirement with xotcl. i have swig working and know a
little c++ but i thought i'd try out this new way of >>doing things.
>>please let me know if you can think of any tricks i am not thinking of
to get this to load properly.
>>i could reinstall TCL to c:\program files\tcl and then reinstall xotcl
from the beginning zip file. Is that necessary?
>>thanks
>>Marvin
Hi again-
I fired this code up and it seems to work :-) problem solved!!
package require XOTcl;
namespace import -force xotcl::*
Object kitchen
# Peter enters the kitchen to cook
kitchen set persons(cook) Peter
# Marion enters the kitchen to take one of the seats
kitchen set persons(seat1) Marion
kitchen array names persons
kitchen array get persons
...cant seem to get ASED output to copy. There probably is a way.
Here is the output of the last command anyways.
cook Peter seat1 Marion
More information about the Xotcl
mailing list