loading a compiled shared library in otcl: Ex_Init not found
khaled <[email protected]> Thu, 22 Oct 2015 00:10:02 -0400
| Newsgroups | gmane.network.simulator.isi |
|---|---|
| Message-ID | <[email protected]> |
Hi ns-users,
I am trying to find a way to integrate my module into ns-2.35 without
modifying the ns2 headers, Makefiles, tcl files etc.
I have compiled a sample code, "ex-linkage.cc" to a loadable shared
library "ex-linkage.so". The code and the Makefile to build it can be
found here: https://github.com/chudur-budur/mdp-wsn/tree/master/ex-linkage
I am loading this .so object in the tcl script (ex-linkage.tcl file in
the link above) by calling "load ex-linkage.so" and then calling the ns
like this --
user@pc:~$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. ns ex-linkage.tcl
however the otclsh (i.e. ns) says --
couldn't find procedure Ex_Init
while executing
"load ex-linkage.so"
(file "ex-linkage.tcl" line 3)
Is there any work around for this ? What is "Ex_Init" and how do I write
it ?
thanks in advance.
khaled
--
---------------------------------------
:: khaled, Rajshahi 6204, Bangladesh ::