#include command returning : error G0008 Syntax error

Hi,

I have used #include in my program. It works on my coauthor's computer, but it does not work on mine. When I run it, it says:

(0) : error G0008 : '#include shocks1' : Syntax error

I wonder if it is due to an update of the program or something else.

Thanks for your help!

Laura

1 Answer



0



Most likely, the reason you are getting the error:

(0) : error G0008 : ‘#include shocks1′ : Syntax error

is because you are running that line by highlighting it and hitting the F4 key, right-clicking and selecting "run selected text" from the context menu, or by entering it from the command line.

You cannot execute a "#include statement" this way. It must be executed by running the file.

Here is a link to another similar question with an answer.Also, this blog post about #include may be helpful.

aptech

1,773

Your Answer

1 Answer

0

Most likely, the reason you are getting the error:

(0) : error G0008 : ‘#include shocks1′ : Syntax error

is because you are running that line by highlighting it and hitting the F4 key, right-clicking and selecting "run selected text" from the context menu, or by entering it from the command line.

You cannot execute a "#include statement" this way. It must be executed by running the file.

Here is a link to another similar question with an answer.Also, this blog post about #include may be helpful.


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.