By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,441 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

perl with swig to test c files

P: 19
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
Nov 2 '07 #1
Share this Question
Share on Google+
6 Replies


KevinADC
Expert 2.5K+
P: 4,059
Your question is not clear, and I have no idea what swig is.
Nov 2 '07 #2

numberwhun
Expert Mod 2.5K+
P: 3,503
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
Nov 2 '07 #3

eWish
Expert 100+
P: 971
After a quick search swig.org
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
Nov 2 '07 #4

KevinADC
Expert 2.5K+
P: 4,059
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.
Nov 2 '07 #5

P: 1
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?
Nov 23 '07 #6

P: 19
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


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?
Dec 22 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.