Questions tagged [undeclared-identifier]
257 questions
-1
votes
1 answer
Identifier both declared and undeclared in same section of code - C2065 VS2010 C++
In my int main() segment of code I declared an identifier (tile). On some lines the identifier thinks it's undeclared, while on other lines it recognizes it's declaration. The initial declaration is outside of all brackets (other than the main). Why…
-2
votes
1 answer
Semantic Issue: Use of undeclared identifier 'screendata'
I've been using buzztouch.com to create an app and have no coding experience. I've been trying to integrate Game Center into my app through Xcode. I've been following these instructions and copying and pasting code where instructed. When I tried…

user1253582
- 185
- 1
- 1
- 5
-2
votes
2 answers
'If' identifier not found
I am a beginner C++ learner and I always have a problem on if loop in visual studio 2010
#include
#include
#include
#include
using namespace std;
int main(void){
string name;
int money;
cout <<…

santhods
- 34
- 5
-2
votes
3 answers
How to solve undeclared variable in the case below
I am a beginner at c++ and I want to ask about this specific error. I don't know why it always appears that I didn't declare the variable wherein in fact, I did (see my code below).
-2
votes
2 answers
Use of unresolved identifier 'section' in tableview
I am coding a tableview with users posts to display. I am currently trying to break it into to sections to where the first section consist of the posts by users and the second section consists of a spinner cell that loads more posts. I keep getting…

allenhinson214
- 165
- 8
-2
votes
1 answer
Undeclared Identifier C2065 "P"
I am a new programming student and this is my first time posting here so I apologize if I did it wrong. I have attached my code below. I am receiving two errors when I try to build my solution. They are : error C2065: 'p': undeclared identifier. I'm…

Rose H.
- 3
- 1
-2
votes
1 answer
Use an object that only gets declared in the file including the original file
Sorry for the confusing title but I could not think of a better way to word my question.
I have a class Foo which is declared in the file Foo.cpp.
Foo.cpp however, includes file Bar.h and class Bar tries to create a new instance of object Foo. Of…

chickenwingding
- 11
- 6
-2
votes
1 answer
Simple integer declaration in Golang
I didn't consider myself to be a newbie, but I can't figure out why this very simple code snippet fails to declare my integer.
func main () {
var totalResults int
rFile, err := os.Open("users.csv") //3 columns
if err != nil {
…

user3888307
- 2,825
- 5
- 22
- 32
-2
votes
1 answer
I get in Visual Studio C++ these errors: 'NuovoUtente': undeclared identifier and 'CercareUtente': undeclared identifier
I get in Visual Studio C++ these errors: 'NuovoUtente': undeclared identifier and 'CercareUtente': undeclared identifier
Please answer if you now why i get these errors.
This is my Code:

Antonio Gschossmann
- 532
- 1
- 7
- 18
-2
votes
1 answer
Counting number of integers in text file (undeclared identifier using fin>>x)
I have a text file with an unknown number of integers. I created a dynamic array without trouble, but the numbers have varied spacing and digits. I would normally go through each position to count the number of spaces used, subtracting space from…

Elliander
- 503
- 1
- 9
- 19
-2
votes
3 answers
Undeclared identifier linked list in C
I'm a total noob to C, trying to make a functional linked list. with the listInsert function sorting the list alphabetically.
But there's a problem, i get a C2059 Syntax error and C2065 error: 'listEntry' : undeclared identifier on the following…

user3679642
- 1
- 2
-2
votes
3 answers
C++ Class Inheritance: Functions
I've been doing some coursework for the programming module of my Physics degree but I've been having some trouble. I had to make a class called Person and a subclass of that called Employee such that:
Person.hpp:
#ifndef PERSON_HPP_
#define…

Vielbein
- 133
- 7
-2
votes
1 answer
"Undeclared identifier" in Delphi 7 - what must I do?
procedure TForm1.Button2Click(Sender: TObject);
begin
showmassage('Create by rihsano');
end;
Delphi reports the following error:
[Error] Unit1.pas(38): Undeclared identifier: 'showmassage'
One more question: what is "undeclared identifier"?

rihsano
- 5
- 1
- 1
- 5
-3
votes
1 answer
Undeclared identifier when overloading operator
When trying to attempt to overload operator<< in my shape.cpp, it can't seem to recognize the variables within the class, even though it is a friend of the class.
My .cpp file:
#include "Shape.h"
ostream& operator << (ostream& cout, const Shape&…

Devs
- 1
-3
votes
1 answer
'SelectedIndex' : Undeclared identifier in C++
I'm writing a simple program that references the state of
SelectedIndex which at any given point can be a number 0 - 9
SelectedIndex is controlled by a dropdownlist.
When I try and reference the state of SelectedIndex:
if (SelectedIndex ==…

Hexagod
- 1
- 1