Mail Archives: djgpp/1999/01/22/23:23:41
Mack McNeely wrote:
>
> I am a senior in AP Computer Science II. My class uses Borland
> C++5.02. I got DJGPP because I need to start working on the projects
> at home and I needed a compiler. I have been taught everything to do
> with strings and vectors with a special group of files created by The
> college board AP Computer Science. I downloaded all the files from
> this address:
> "http://www.collegeboard.com/ap/computer-science/html/classes.html".
> I put all the header files in the c:\djgpp\include directory and I put
> the .cpp files in a directory called apclass at
> c:\djgpp\addons\apclass. I compiled apstring.cpp from the command
> prompt and that worked fine. However, when I tried that with the
> other files I got these three lines:( I'll use the example of
> apvector.cpp)
> " In file included from apvector.cpp:17:
> c:/djgpp/lang/cxx/apvector.h:127: apvector.cpp: No such file or
> directory (ENOENT
> )"
So does apvector.h try to #include apvector.cpp? Seems kind of strange,
but... does it use the "foo.h" mechanism (as opposed to <foo.h>)? If
so, you'll need to leave the headers in the same directory with the
source files, as that's where the quotes tell the compiler to look.
It would help if you could post the #include lines of the relevant
files.
And btw, please don't post in HTML.
> This is a character for character copying precise down to the
> slashes. Please tell me what my problem is. and why it is printing /
> instead of \ in this line:
> c:/djgpp/lang/cxx/apvector.h:127: apvector.cpp: No such file or
> directory (ENOENT).
DJGPP is based on GCC, a compiler of Unix origins. Unix uses `/' as a
path separator. Just ignore it.
> I am sure it is just some stupid mistake but please help me fix it.
> Until it is fixed I cannot work on my school stuff. And any help on
> commands for plain old strings, and vectors would be helpful too.
You might try comp.lang.c++ for this (read their FAQ first).
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -