Thread: gcompile anyone know where to download it ?

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    15

    gcompile anyone know where to download it ?

    Hi I have ubuntu and need to compile my c program using the compiler gcompile. The problem is I cannot find this program at all ! Does anyone know where I can download this compiler ?
    I have tried sudo apt-get install gcompile to no avail.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Perhaps you are thinking of gcc?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    15
    I am not sure, I just know that in scientific linux I compile using the command gcompile "cfile" in the terminal and it compiles fine. It does not compile when using gcc so I guess it cannot be the same compiler.
    Has anyone used the gcompile command to compile a c program ?
    Where can you download it from ?
    Any help is appreciated.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    If your program is correctly written and does not compile using gcc, then chances are you are either using gcc wrongly, or you wrote your code using non-standard extensions offered by this gcompile compiler that I have never heard of, and which is not easily found by searching the Web, if it really exists.

    EDIT:
    So, the online sources seem to indicate that gcompile has something to do with Ada, but the details are sketchy, and I cannot find information on it under GNU documentation. On a hunch, I suggest that you post the first ten or twenty lines of the program that you are trying to compile.
    Last edited by laserlight; 06-18-2010 at 04:12 PM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    15
    Thank you laserlight, I have found a website which also talks about gcompile (see link) but Im still trying to find where to download it


    CSci 190 -- Getting Up to Speed with Ada 95

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Yes, that is what I found as well. Are you absolutely sure that your program is a C program? If you have no C programming knowledge, then do as I say: post the first 10 to 20 lines of your program. If you are a C programmer, then post the code with the gcc error messages (and state what version of gcc was used).
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    Registered User
    Join Date
    Sep 2008
    Posts
    15
    I know it is a C program as I have compiled and run it on my computer at university. its extension is .C also. I just cant get it tp compile on my laptop as I have only gcc and not gcompile Here are the first few lines, I wont paste all the code as it is a really big program.

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <unistd.h>
    #include <sys/ioctl.h>
    #include <sys/mtio.h>
    #include <time.h>
    #include <math.h>
    #include <stdio.h>
    #include <ctype.h>
    #include <string.h>
    #include "scandef.h"

    void writespec(char filename[40], int length, float psp[]);
    void writemat(char filename[40], short mat_number);
    short sidechannelcorrection(short ge_id_sc, short ge_energy, short ge_side,
    float offset, float gain, float thresh, float gscomp_sc);
    float sctheta(short ge_id_sc, float ge_theta_sc);
    int polygate(float (*polygon)[4], int *point);
    void read_polygons(char polyfile[40], int npolygons, float (*polyarray)[20][4]);
    void checkconflicts();
    void read_diskfilelist(char diskfilelistfile[40], char diskfilename[400][60]);

    FILE *fpr, *fp, *fps;

    short matrix[NMAT][MAT_LENGTH][MAT_LENGTH];
    int ndo[40], histogram_option;
    int disk_nblocks[400], disk_block_skip[400], ndiskfiles;
    float beta;
    unsigned long long int implanttimestore[205][205][105];
    int implantgestore[205][205][105];
    unsigned long long int sigastacstore_time[20005];

    There is also another webpage which mentions gcompile again george washington university
    Using GNAT in CSci 131

  8. #8
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by zidangus
    There is also another webpage which mentions gcompile again george washington university
    The thing is, like the previous link, this is all about Ada 95. It is clear that the input to gcompile is not a C program, and yes, your code looks like C.

    It is possible that the gcompile that you used is an alias for another compiler. If you still have access to it, try to obtain as much information you can about what exactly is the compiler name, along with version information.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  9. #9
    Registered User
    Join Date
    Sep 2008
    Posts
    15
    Thanks laserlight, I will look again at the gcompile program I use in scientific linux it may be as you say a alternative name for another compiler.


    Again

    Cheers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Picture download problem
    By wingri in forum C Programming
    Replies: 10
    Last Post: 07-31-2007, 05:32 AM
  2. Replies: 4
    Last Post: 09-30-2005, 02:51 AM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM