1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Calling gcc from file/system calls from file

Discussion in 'C' started by titan5, Oct 4, 2010.

  1. titan5

    titan5 New Member

    Joined:
    Oct 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have to use a software package written in c with many different files.

    It has an executable file with a variable -

    cc=/usr/bin/gcc

    cc is later used in that file to compile other files present in the software.


    wenever i try to run this file I get an error command not found. How do I fix this?
    my gcc is located in the above directory only.
    M using ubuntu 9.10
     
  2. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    While executing the .out file which command u r using 'cc' or 'gcc'??
     

Share This Page