#include command returning : error G0008 Syntax error


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!


1 Answer


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.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy