delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/12/01:45:09

Date: Sat, 12 Dec 1998 01:45:01 -0500 (EST)
From: Nathaniel Johnson <najohnso AT expert DOT cc DOT purdue DOT edu>
To: djgpp AT delorie DOT com
Subject: gxx error
In-Reply-To: <199812120513.AAA07934@zeus.pc.edu>
Message-ID: <Pine.GSO.3.96.981212014138.9536A-100000@expert.cc.purdue.edu>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

hello
  i am using djgpp v2.02 and i am getting this error when i try to
compile a simple c++ program

error:
In file included from swap.cc:1:
e:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory
(ENOENT)

swap.cc:
#include <iostream.h>

template <class T>
T min(T a, T b)
{
  if (a < b)
    return a;
  else
    return b;
}

void main()
{
  int x = 1, y = 2;
  cout << min(x,y) << endl;
  float c = 13.23, d = 2.231;
  cout << min(x,y) << endl;
}

thanks for any help
nate

- Raw text -


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