Error G0276: Illegal use of reserved word

I keep getting the following error when I try to run a program:

error G0276 : 'rows' : Illegal use of reserved word

I have looked over it and cannot see anything wrong with how i used "rows".  I copied and pasted from a program that worked!

4 Answers


Without more details it is hard to give specific help. If you post the code, we can point out the problem. However, here are some tips to help you find the error.

Compile-time errors
This is a compile-time error. That means that this error is being found while GAUSS turns the text on page into a program that the computer can run.

These compile-time errors can often be missing or extra parentheses, quotes, semi-colons, etc. These extra or missing operators can turn two or more statements into one larger illegal compound statement. This can sometimes lead to errors that are less straightforward.

Locating a compile-time errror
Try highlighting the chunks of text starting from the beginning of your program and running them individually (with either the F4 hot-key or right-clicking and selecting "run selected text" from the context menu). This should help you narrow down the line that is causing the problem and allow you to fix it.

If this does not lead to a quick resolution, post the code and we can help you out.



while running a couple of codes I get "G0276: Illegal use of reserved word 'norm'." Any idea about what is going on?



GAUSS now has a built-in function norm which can compute various matrix and vector norms.

Most likely the code you are running has a variable named norm. GAUSS does not allow you to have variables that have the same name as built-in functions.

So if you change the name of the variable from norm to something like norm_, the problem should be resolved.

If you are still having trouble, post the line of code which is causing the problem and we can provide more help.


It worked. Thanks!

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