Click to See Complete Forum and Search --> : extern problem


Whipping Boy
12-28-2000, 04:54 AM
extern ifstream script;

Whenever I compile, it gives me:
extern.h:1: syntax error before `;'

------------------
Kurt Weber
Shell scripts? Shell scripts? We don't NEED no stinkin' shell scripts!
White, heterosexual, middle-class, and proud!
I've never understood why Bill Gates would name his company after his penis

Strike
12-28-2000, 07:23 AM
You do have to have

#include <stream>

before that (and since this is line one according to the error output, I know you don't http://www.linuxnewbie.org/ubb/smile.gif)

Whipping Boy
12-28-2000, 02:01 PM
Yeah, I realized that I had forgotten to put that in right when I went to bed this morning--but I was too comfortable to get up and change it.

Boy, do I feel like an idiot now.

------------------
Kurt Weber
Shell scripts? Shell scripts? We don't NEED no stinkin' shell scripts!
White, heterosexual, middle-class, and proud!
I've never understood why Bill Gates would name his company after his penis