Quote:
Originally Posted by gh0pp3r
...but it is not declared.
|
Some languages support using variables without declaring them like BASIC, Python, etc (most of them being
interpreted languages rather than
compiled languages). However, others like C, C++ requires every variable to be declared before using them.
If you are using
gcc then use the option -Wall while compiling. This option will display all the errors.
Code:
gcc -Wall -pedantic myFile.c
Post your exact error messages, and part of source code in question for faster feedback from forum members.