Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Compiling Error Crafty SE

Author: Per Steneskog

Date: 11:49:20 07/18/04

Go up one level in this thread


I recommend for every *.h file ALWAYS have the structure

#ifndef FILENAME
#define FILENAME

..content..

#endif

That way there is never any risk you will run into this kind of error. Even if
one correctly only includes each file once, you can be sure someone else will
include your code twice somehow.

// Regards Per Steneskog



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.