|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||
|
|||
|
Re: The silly syntax errors that won't go away!
actually the more traditional way to do that is
Code:
#ifndef _MY_HEADER_FILE_H_ #define _MY_HEADER_FILE_H_ //other stuff in the header goes here #endif EDIT: forgot to mention that _MY_HEADER_FILE_H_ should be the name of the file it is in (in this case it would be myheaderfile.h), if two files have the same #define at the top, one will get ignored Last edited by kevlarman : 18-02-2006 at 11:43. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C18 v2.4 -- Syntax error where there is no syntax error | Joel J | Programming | 7 | 12-01-2007 17:27 |
| Union Errors in AutoCAD | indieFan | Inventor | 4 | 16-07-2004 12:54 |
| PBASIC language syntax | WizardOfAz | Programming | 14 | 30-04-2003 10:23 |
| Digital inputs, bandwith, errors? | Micah Brodsky | Programming | 7 | 20-01-2003 16:08 |
| Specs full of errors??? | Simon G | Motors | 1 | 20-01-2003 12:53 |