From: Sivakameswararao P. - C. , C. <Siv...@hc...> - 2006-02-15 14:35:28
|
dear all =20 Basically what I would want is the ability to execute the C-function(s)=20 within a TCL-environment that would allow me to quickly test C-functions I have to implement with several test data,=20 or even create complete regression tests.=20 i downloaded swig and i installed it(unix), firstly i want execute the=20 examples which was given,i followed the procedure > swig -tcl8 example.i then >gcc -fpic -c example_wrap.c after this command i got one warning i.e -fpic ignored for target<all code is position independent> then i have given the command > gcc -shared example_wrap.o -o example.so -lm=20 i got example_wrap.c:undefined reference to tcl.................. and collect2:id returned 1 exit status =20 then i have given > tclsh % load ./example.so example after this finally i got couldnot load library ./example.so this library or a dependent lib could = not be found in lib path pls tell me the solution to this problem and correct procedure for = execution thank u in advance kamesh DISCLAIMER=20 This message and any attachment(s) contained here are information that = is confidential, proprietary to HCL Technologies=20 and its customers. Contents may be privileged or otherwise protected by = law. The information is solely intended for the=20 individual or the entity it is addressed to. If you are not the intended = recipient of this message, you are not authorized to=20 read, forward, print, retain, copy or disseminate this message or any = part of it. If you have received this e-mail in error,=20 please notify the sender immediately by return e-mail and delete it from = your computer |