delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/31/01:46:33

Message-ID: <01BBC6B1.C682EA00@ip-pdx11-14.teleport.com>
From: "Steve A. Long" <longsa AT teleport DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Compiling problems
Date: Wed, 30 Oct 1996 22:29:07 -0800
MIME-Version: 1.0

Hi,
I am having problems getting djgpp to compile my programs on my pentium =
133 with 32MB RAM. We (in the cs deparment at Portland State University) =
normally have to compile using the unix command line C++ compiler at =
school. However this is tedious even at 14.4bps. I can get my programs =
to compile at school but when I try to compile at home with djgpp I get =
the following messages. I have the following preprocessor directives in =
my class implementation file:
#include<fstream.h>
#include<iostream.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include"list.h"

In my main I have the following include files:
#include<iostream.h>
#include<stdlib.h>
#include<ctype.h>
#include"list.h"

my environ.lst is:
TMP=3DC:\WINDOWS\TEMP                                                    =
       =18
TEMP=3DC:\WINDOWS\TEMP                                                   =
       _
PROMPT=3D$p$g                                                            =
       _
winbootdir=3DC:\WINDOWS                                                  =
       _
COMSPEC=3DC:\COMMAND.COM                                                 =
       _
PATH=3DC:\WINDOWS;C:\WINDOWS\COMMAND;D:\NORTON~1;C:\PKZIP;C:\UTILITY\DETA=
R;D:\DJ_
DJGPP=3Dd:\djgpp\djgpp.env                                               =
       _
TMPDIR=3Dd:\tmp                                                          =
       _
GO32TMP=3DD:\tmp                                                         =
       _
windir=3DC:\WINDOWS                                                      =
       _
BLASTER=3DA220 I5 D1 H5 T6 E620                                          =
       _


go32 output is:
go32/v2 version 2.0 built Aug 12 1996 22:27:23
Usage: go32 coff-image [args]
Rename this to go32.exe only if you need a go32 that can run v2 binaries =
as
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your =
PATH
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=3Dy in the environment to get verbose output.

DPMI memory available: 21767 Kb
DPMI swap space available: 8093 Kb

Autoexec.bat is:
@echo off
@C:\PROGRA~1\NORTON~1\NAVBOOT.EXE /STARTUP
PATH=3DD:\NORTON~1;C:\PKZIP;C:\UTILITY\DETAR;d:\djgpp\bin;
PATH=3D%PATH%;
set DJGPP=3Dd:\djgpp\djgpp.env
set TMPDIR=3Dd:\tmp
set GO32TMP=3DD:\tmp

Config.sys is:
DEVICE=3DC:\WINDOWS\HIMEM.SYS
files=3D35
shell=3Dc:\command.com c:\ /e:1500 /p

I am running Win95. Pleeeeeeaaase help? :)=20
I think I have included everything.


Compile output:

C:\AMIPRO\DOCS\CS163\Program 1>gcc -o myprog.exe list.cc main.cc
In file included from list.cc:13:
list.h:34: parse error before `private'
list.cc:16: `list::list()' is already defined in class list
list.cc:133: `list::Flush()' is already defined in class list
list.cc:141: `list::GetLine()' is already defined in class list
list.cc:336: parse error at end of input
In file included from main.cc:7:
list.h:34: parse error before `private'
main.cc:51: `list::welcome()' is already defined in class list
main.cc:65: new declaration `char list::main_menu()'
main.cc:12: ambiguates old declaration `int list::main_menu()'
main.cc:65: `list::main_menu()' is already defined in class list
main.cc:99: `list::error_char()' is already defined in class list
main.cc:122: `list::flush()' is already defined in class list
main.cc:128: `list::error_int(int, int)' is already defined in class =
list
main.cc:147: parse error at end of input

Steve Long
longsa AT teleport DOT com

- Raw text -


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