delorie.com/archives/browse.cgi | search |
From: | "Matt Dooner" <mdooner AT mindspring DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | gpp can't find headers |
Date: | Sat, 8 Apr 2000 18:56:30 -0400 |
Organization: | MindSpring Enterprises |
Lines: | 43 |
Message-ID: | <8codd9$equ$1@slb6.atl.mindspring.net> |
NNTP-Posting-Host: | cf.45.30.36 |
X-Server-Date: | 8 Apr 2000 22:55:37 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3155.0 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3155.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I've followed the instructions in the FAQ, but gpp still can't find my included headers in c++ programs. Here is the error message from a basic program that uses a string and vector. Below it is the code of the program; -------------------------------------------------------------- site.cc: In function `int main()': site.cc:7: `vector' undeclared (first use this function) site.cc:7: (Each undeclared identifier is reported only once site.cc:7: for each function it appears in.) site.cc:7: parse error before `<' site.cc:8: `test' undeclared (first use this function) site.cc:9: `string' undeclared (first use this function) site.cc:9: parse error before `=' site.cc:10: `cat' undeclared (first use this function) ---------------------------------------------------------------- #include <iostream.h> #include <string.h> #include <vector.h> int main() { vector test<int>; test.resize(1); string test = "test"; cout << test << endl; } ------------------------------------------------------------------- Autoexec.bat; @ECHO OFF set DJGPP=C:\DJGPP\DJGPP.ENV set PATH=C:\DJGPP\BIN;%PATH% Rem TShoot: set LFN=y C:\WINDOWS\COMMAND\MSCDEX.EXE /D:TOSCD001 Matt Dooner mdooner AT mindspring DOT com http://www.digitald.net/ducked/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |