delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/06/22:47:02

Message-ID: <000301be524c$4bfb38e0$9aa2d6d1@jinx>
From: "Aaron Kirk" <amkirk AT eos DOT ncsu DOT edu>
To: <djgpp AT delorie DOT com>
Subject: Problems compiling
Date: Sat, 6 Feb 1999 22:45:19 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Reply-To: djgpp AT delorie DOT com

I just recently downloaded gpp and was trying to compile a sample program.
I received a number of errors.  One early one consisted of not being able to
find streambuf.h.  I looked for it and found the file was name streambu.h.
I changed the name and got past that error.  I also found that _g_config.h
was spelled _g_confi.h.  Should these errors happen?

Anyways, my problem is with the following error:

C:\appl\djgpp\bin\ld.exe: cannot open -lstdcxx:  No such file or directory
(ENOENT)

How do I fix this?

Thanks for your help

Aaron Kirk
amkirk AT eos DOT ncsu DOT edu

ps - Please reply directly to my email address

My command to compile was:  gxx test.cpp -o test.exe

In case it helps, here is the same program:

#include <iostream.h>

int main()
{
 char key_input[65];
 char text_input[65];

 //Beginning of program

 cout << "Key: ";
 cin.getline(key_input,65,'\n');
 cin.ignore(80,'\n');

 cout << "Text: ";
 cin.getline(text_input,65,'\n');
 cin.ignore(80,'\n');

 cout << key_input << " " << text_input << endl;

 return 0;
}

- Raw text -


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