Re: [SLUG] OT - need help with C++ compile

From: Jason Copenhaver (jcopenha@typedef.org)
Date: Mon Nov 12 2001 - 19:52:06 EST


On Mon, 12 Nov 2001, George Curran wrote:

> Hello Sluggers
>
> I am trying to learn C++ by working through the Sams "Teach Yourself C++
> Programming in 21 Days". I have a SuSE 7.1 system using the gcc complier
> version 2.95.2 19991024 (release) . The problem I have is when I try to
> use an include file (other than iostream.h) and I get the following error
> on compile:
> viffer@linux:~/cpp.21days > g++ lst6.7.cpp -o example
> lst6.7.cpp:4: /home/viffer/cpp.21days/cat.hpp : No such file or directory
>
> lst6.7.cpp:
> +++++++++++++++++++++++++++++++++++++++++++++++++
> // demonstrates inline functions
> // and inclusion of header files
>
> #include " /home/viffer/cpp.21days/cat.hpp "
>

that last line should read

#include "/home/viffer/cpp.21days/cat.hpp"

notice no spaces after/before the quotes

Jason



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:51:28 EDT