473,383 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

perl with swig to test c files

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
6 1568
KevinADC
4,059 Expert 2GB
Your question is not clear, and I have no idea what swig is.
Nov 2 '07 #2
numberwhun
3,509 Expert Mod 2GB
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
971 Expert 512MB
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
4,059 Expert 2GB
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
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
Harika
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

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

Similar topics

2
by: Matt Whelan | last post by:
Supposedly, recent versions of SWIG can be made to work with MS VC++'s non-standard integer data types. According to a recent SWIG ChangeLog entry: %apply long long { __int64 }; should make...
7
by: Chris | last post by:
Hi I am posting this on both the perl and python groups My intention is not to start a war or anything else, I would just like some pragmatic advice. My apologies to the python group I am...
42
by: Fred Ma | last post by:
Hello, This is not a troll posting, and I've refrained from asking because I've seen similar threads get all nitter-nattery. But I really want to make a decision on how best to invest my time....
0
by: Bill Davy | last post by:
I am working with MSVC6 on Windows XP. I have created an MSVC project called SHIP I have a file SHIP.i with "%module SHIP" as the first line (file is below). I run SHIP.i through SWIG 1.3.24...
0
by: James Carroll | last post by:
Hi, I asked this on the SWIG mailing list, but it's pretty dead over there.... I'm trying to get Python to pass a subclass of a C++ object to another C++ object... I have three C++ classes, ...
9
by: Dieter Vanderelst | last post by:
Dear all, I'm currently comparing Python versus Perl to use in a project that involved a lot of text processing. I'm trying to determine what the most efficient language would be for our...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
6
by: None | last post by:
Hi, I was trying to use SWIG to expose some C++ functions to perl. But, I ran into some issues here. I don't know why, but I see that a macro in SWIG replaces "NORMAL" with "PL_op->op_next"... ...
1
by: Harika | last post by:
hi everybody Iam learning python. I have to write test scripts for c files. I did using swig and python. Using python i give input to a function and gets the output and shown using python script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.