perl with swig to test c files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Harika
    New Member
    • Sep 2006
    • 19

    perl with swig to test c files

    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
    Recognized Expert Specialist
    • Jan 2007
    • 4092

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

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      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

      Comment

      • eWish
        Recognized Expert Contributor
        • Jul 2007
        • 973

        #4
        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 misunderstandin g the OP's intent. So, therefore, I too agree with Kevin and Jeff please explain your question better.

        --Kevin

        Comment

        • KevinADC
          Recognized Expert Specialist
          • Jan 2007
          • 4092

          #5
          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.

          Comment

          • ramusai3311
            New Member
            • Nov 2007
            • 1

            #6
            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?

            Comment

            • Harika
              New Member
              • Sep 2006
              • 19

              #7
              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


              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?

              Comment

              Working...