Find the answer to your Linux question:
Results 1 to 2 of 2
Hi everyone, I have some C source code that exists in several files. The creator of the source code says to run a specific file (we'll call it 'mainfile') that ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Exclamation How to compile c source code with a c shell file in LINUX??

    Hi everyone,
    I have some C source code that exists in several files. The creator of the source code says to run a specific file (we'll call it 'mainfile') that will compile all the C code. I looked at the file type and it is an 'x-csh' file type. I've spent hours but for some reason I absolutely cannot get this thing to execute...can anyone help?? I am very new to LINUX. Thanks so much.

  2. #2
    Linux Newbie
    Join Date
    Feb 2009
    Location
    Third ring of Pergatory
    Posts
    199
    Make sure you own it and you've made it executable (chmod +x filename) then run it directly by file name or use a ./ before the file. If you don't find a filetype listed in linux don't sweat it, I can send you a text file named "open_this.file" and you'll still be able to open it and read it. If you make "open_this.file" executable (with a chmod +x) the kernel will try to run it as a script if it recognizes the interpreter.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...