[Gllug] OT - GNU compiler error

Mick Farmer mick at dcs.bbk.ac.uk
Mon Apr 7 13:21:04 UTC 2008


Dear GLLUGers,

I'm compiling a C program with the command line

    gcc -ansi -c search.c

and get the error message

    search.c:5: error: duplicate `extern'

The int debug is defined in a different file that's linked
with this one.  As you can see, I've stripped out everything
that's not essential.  Can anyone help with this?  I have
other similar files that don't raise this error.

<<<<<<<<<<<<<<<<<<<<
#include "poly.h"
#include "search.h"
#include "zero.h"

extern int   debug;

double cover(Zero z, const Poly p, const Complex centre,
	     const double radius, const int n) {
}

double dekker(const Poly p) {
}

int lagouanelle(const Complex in) {
}
  
int main(int argc, char *argv[]) {
}

int marden(const Poly p, const Complex centre, const double radius) {
}

void reduce(Poly out, const Poly in) {
}

void search(Zero z, const Poly p, const int max1, const int max2,
	    const int sides, const double overlap) {
}

void test(Zero z, const Poly p, const Complex centre,
	  const double radius) {
}
<<<<<<<<<<<<<<<<<<<<<<

Regards,

Mick               /"\                      
                   \ /                      
Linux Registered    X  ASCII Ribbon Campaign
User #287765       / \ Against HTML Mail
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list