preprocessor code

H

Howard

#include "../require.h"


What does ../ mean here?

I don't know if it's the same on all systems, but it usually means "one
directory above the current (or default) one". So if the default path to
your source files is, say "/MyApp/Source", then that would point to the
directory "/MyApp".

-Howard
 
D

defendusa2

I think it is the same on all systems. Otherwise, the code wouldn't be
portable.
 
O

Old Wolf

(e-mail address removed) top-posted:
I think it is the same on all systems. Otherwise, the code wouldn't be
portable.

It isn't portable; location of files other than the standard headers,
is implementation-defined.
 
J

Jerry Coffin

[ ... top-posting fixed ]
Howard wrote:

[ ... ]
I think it is the same on all systems. Otherwise, the code wouldn't be
portable.

It's not. Portable code can include the headers specified in the
standard, but ($16.2/5): "The mapping between the delimited sequence and
the external source file name is implementation-defined."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

preprocessor bug? 2
Preprocessor problem 1
Preprocessor 1
Help with finding the color code 1
The or operator and the preprocessor? 3
Code sharing 2
Preprocessor 4
code for boost shared safe pointer 0

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top