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.
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.
Perhaps you are thinking of gcc?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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.
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.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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
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).
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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
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.Originally Posted by zidangus
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.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
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