Mail Archives: djgpp/1994/09/09/14:04:50

Date: Fri, 9 Sep 1994 11:17:39 -0600
From: tesla AT lamar DOT ColoState DOT EDU (Jon Nash)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: DJ112m1 Problems

Hello all,

I have a problem... :)  I just downloaded a complete (I pretty sure!) list
of files from (version 1.12) and I have not been able to 
get a simple test program to compile correctly.

First, the files that I got were:

and after unzipping these I got and unzipped

I'm quite sure that all my environment variables are correct since I'm just
upgrading from version 1.11 and I have been using version 1.12 with libgpp.a
from version 1.11.  I thought my problems would be solved by the official
maintenance version ... :(

Now for the test program.			

#include <Complex.h>
#include <math.h>
#include <iostream.h>

int main(void)  {
  Complex z(1,2);
  cout << "The complex number is: " << z << "\n";
  return 1;

I compile this with the command line:
  gcc -o test -lgpp -lm
The error that this produces is:  In function `int main()'; variable `class Complex z' has initializer but incomplete type `class Complex z' has incomplete type and cannot be initialized
segmentation violation in pointer 0x00000406 at d8:c5f2

This used to work ok with version 1.11 :)

I would appreciate any help!!!

Jon Nash
Colorado State University
Physics Department
Tesla AT Lamar DOT ColoState DOT EDU

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019