List:General Discussion« Previous MessageNext Message »
From:Jorge del Conde Date:May 27 2001 4:15pm
Subject:Re: Simple C++ question
View as plain text  
Hi David,

#include <something.h>
#include "somethingelse.h"

as you see, < >and " are used.

Use <> when the file you want to include is not in the same directory your
project is in AND is available thought the compilers include path
configuration.  Use " when the file you want to include is in the same
directory as your project or when you define at compile time a path where
some include files will be gotten from.

This is a very basic C/C++ question and it is likable you'll run into many
other problems, so I suggest to go to
http://www.mysql.com/portal/books/html/

and get yourself a good C/ C++ book !

Regards,
Jorge

MySQL Development Team
    __  ___     ____ __   __
   /  |/  /_ __/ __/ __ \/ /   Jorge del Conde <jorge@stripped>
  / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
 /_/  /_/\_, /___/\___\_\____/ Mexico City, Mexico
        <___/

----- Original Message -----
From: "David Ayliffe" <me@stripped>
To: <mysql@stripped>
Sent: Sunday, May 27, 2001 9:17 AM
Subject: Simple C++ question


> Its been a while since i've last touched c++ and i'm trying to include
> two files
> stdio.h
> and mysql.h
>
> I know that to include stdio.h I enclose it in <> but mysql.h is in the
> same folder as the project I know I can't use <> but what do I use
> instead?
>
> Thanks lots
> David Ayliffe (mail@stripped)
>
>

Thread
Simple C++ questionDavid Ayliffe27 May
  • Re: Simple C++ questionJorge del Conde27 May