🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Richard Rudell Fri, 31 Oct 1986 16:14
c++ version 1.1 incompatibility with 4.3bsd C compiler
#377
Author: Richard Rudell
Date: Fri, 31 Oct 1986 16:14
46 lines
1503 bytes
The following does not compile with Version 1.1 of cfront on a bsd 4.3 VAX:


	#include <complex.h>

	main()
	{
	    complex a = complex(5.0,7.0);
	    complex b = complex(4.5,3.2);
	    complex c = complex(4.5,3.2);

	    complex d = a + b + c;
	}


The compiler produces the error message:
	CC  com.c:
	cc   com..c -lC
	"/usr/include/CC/complex.h", line 44: redeclaration of _plusFCcomplex__Ccomplex___
	mv: com..o: Cannot access: No such file or directory


The problem is that the declarations (taken from the cfront output):

		.
		.

	#line 44 "/usr/include/CC/complex.h"
	extern struct complex _plusFCcomplex__Ccomplex___ ();
		.
		.
		.
	#line 44 "/usr/include/CC/complex.h"
	static struct complex _plusFCcomplex__Ccomplex___ ();


are considered illegal by the 4.3 compiler.  Apparently cfront is
creating a static function because of an inability to fully expand
the complex addition in-line.

Any simple fix ?


Thanks,
Rick Rudell.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads