Connecting Tech Pros Worldwide Forums | Help | Site Map

perl with swig to test c files

Newbie
 
Join Date: Sep 2006
Posts: 19
#1: Nov 2 '07
hi everybody,

Iam writing perl scripts with swig to test c modules. I want t o tell you that the required files (included .h and .c files) are put in different folders and in different paths, then how do perl scripts identifies functions which are called in the module. But those functions are hold in different folders. could you please help me in this regards. [how to include directory structure in swig]

Thank you

KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Nov 2 '07

re: perl with swig to test c files


Your question is not clear, and I have no idea what swig is.
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,573
#3: Nov 2 '07

re: perl with swig to test c files


Quote:

Originally Posted by KevinADC

Your question is not clear, and I have no idea what swig is.

Agreed! You are going to have to really elaborate and better explain your question. Perl has nothing to do with .h and .c files and what you are asking is not at all clear.

As Kevin said, What is swig? I have never heard of it either.

Regards,

Jeff
eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#4: Nov 2 '07

re: perl with swig to test c files


After a quick search swig.org
Quote:
SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
Their tutorial shows an example working with perl. I think that the OP is looking for the lib pragmas. Not sure if that will work. I may be misunderstanding the OP's intent. So, therefore, I too agree with Kevin and Jeff please explain your question better.

--Kevin
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#5: Nov 2 '07

re: perl with swig to test c files


After reviewing his posting history I have no desire to help this person. The same question has been asked on two other forums on TSDN and the poster never bothered to reply to the suggetions ( 9 days ago and 100 days ago ). If he can't be bothered neither can I.
Newbie
 
Join Date: Nov 2007
Posts: 1
#6: Nov 23 '07

re: perl with swig to test c files


hi ,
i am having 3+ years experience using perl and also with swig. give me your problem quite clear and just tell me what exactly you want?
Newbie
 
Join Date: Sep 2006
Posts: 19
#7: Dec 22 '07

re: perl with swig to test c files


hi

This is Harika. Now iam using perl with swig interface to test c modules manually. Would you please tell me something about packet generator in perl to test my c modules completely in all the corners.

In detail: Using perl with swig i will give input to c api and those will pass through module and produce the output. Now meanwhile i have to generate some packets of ethernet or ip over ethernet or valn etc. So far i prepared a packets manually with hard coded in c language itself. Let me know something if there is any packages in perl which generates packets in different kinds like i said ethernet, ip, ip over ethernet, vlan, ip over vlan packets.

I will b so glad with ur help.


Thanking you


Quote:

Originally Posted by ramusai3311

hi ,
i am having 3+ years experience using perl and also with swig. give me your problem quite clear and just tell me what exactly you want?

Reply