www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/26/23:30:03

From: digitaltv AT digitalrice DOT com (Tony)
Newsgroups: comp.os.msdos.djgpp
Subject: A question about DJGPP
Date: 26 Jun 2002 20:18:20 -0700
Organization: http://groups.google.com/
Lines: 37
Message-ID: <fc8fef5e.0206261918.275569fa@posting.google.com>
NNTP-Posting-Host: 61.48.0.123
X-Trace: posting.google.com 1025147900 1261 127.0.0.1 (27 Jun 2002 03:18:20 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: 27 Jun 2002 03:18:20 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have installed DJGPP in my windows98 system, and make a test.cpp
like this:

#include <iostream>
using namespace std;

main()
{
	cout << "hello";

}

Also make a make.bat file like this:

gcc -c -Wall test.cpp
gcc -o myprog.exe test.o

I want to complier and link the cpp file, But when I complier the
soure file, the result is:

E:\download\train\gcc_c++\test>
E:\download\train\gcc_c++\test>gcc -c -Wall test.cpp
In file included from e:/djgpp/lang/cxx/iostream:6,
                 from test.cpp:2:
e:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or
directory (ENOENT)


E:\download\train\gcc_c++\test>gcc -o myprog.exe test.o
gcc.exe: test.o: No such file or directory (ENOENT)
gcc.exe: No input files

But the head file streambuf.h is in the directory e:/djgpp/lang/cxx/.
I am a DJGPP beginer, could someone tell me why or some tutorial about
DGJPP?

Thanks!

- Raw text -


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