0
我想在我的應用程序中使用Memchan
包。我能夠靜態編譯和鏈接它。但不幸的是我不知道如何在我的應用程序中加載這個包。Tcl - 如何加載靜態鏈接的Memchan?
% rs
Internal error detected during start: can't find package Memchan
can't find package Memchan
while executing
"package require Memchan"
我Memchan2.3
目錄追查這對pkgIndex.tcl
:
% cat pkgIndex.tcl
package ifneeded Memchan 2.3 [list load [file join $dir libMemchan2.3.so]]
我有兩個問題:
- 如何加載靜態鏈接的版本
libMemchan2.3.a
? - 當調用一個靜態鏈接庫時,是否有特殊的語法用於調用
package require Memchan
?
謝謝。讓我試試這個。 – Anand 2011-05-10 17:06:37