perl script

This is a discussion on perl script within the Linux Programming forums, part of the Platform Specific Boards category; I was wondering if anyone had ever used a perl script with gcc. I was thinking that it might be ...

  1. #1
    Unregistered
    Guest

    perl script

    I was wondering if anyone had ever used a perl script with gcc. I was thinking that it might be nice to be able to use the script to invoke the compiler with the optiions I wanted already stored in there. Like ./perlscript my.c so I wouldn't have to type it all out every time or run to a gui everytime.

  2. #2
    Registered User Strider's Avatar
    Join Date
    Aug 2001
    Posts
    149
    You could, but it might be better to keep the build and execution phase separate. I always prefer to use a makefile for builds and keep a simple script for the purpose of execution.

    David
    One Ring to rule them all, One Ring to find them,
    One Ring to bring them all and in the darkness bind them
    In the Land of Mordor where the Shadows lie.

  3. #3
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    The gimp uses one for their builds, which creates a Makefile. So you run perl Makefile.pl and then type make.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Script in games
    By Shakti in forum Game Programming
    Replies: 7
    Last Post: 09-27-2006, 12:27 AM
  2. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 10:30 AM
  3. Passing arguments to script.....
    By suwie in forum C Programming
    Replies: 5
    Last Post: 09-25-2004, 11:10 PM
  4. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 01:47 PM
  5. perl need help pls.....
    By magnum38 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-12-2001, 09:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21