Questions tagged [undeclared-identifier]
257 questions
3
votes
4 answers
Unidentified identifier c++, but it's identified
having this issue with Country or Continent not being identified in the following code for the Map.h file
Map.h:
#ifndef MAP_H
#define MAP_H
#include
#include
#include
#include
//#include "Country.h"
using…

Demo Kioussis
- 43
- 5
3
votes
2 answers
Undeclared identifier error where none seems apparent
I am trying to implement a simple version of Conway's Game of Life which consists of a header file and three .cpp files (two for class functions, one for main). Here I have included my header files and two class function declaration files ( the…

Chubzorz
- 135
- 1
- 2
- 7
3
votes
2 answers
Qt c++ GUI call from another class
I created a button and a textbrowser via gui drag&drop.
the ui is created in the mainwindow.cpp as well as the click-button-function. There is a main.cpp but thats irrelevant cause the program shall not start until the startbutton is…

beary
- 41
- 2
- 7
3
votes
2 answers
Use of undeclared identifier 'FunctionName' C++ Xcode
All I am trying to do is call a simple function from another function, why am I getting errors for each time I call addRomanDigit in the convert_to_Roman function? The program is not complete I am just trying to finish the first function.
//
// …

Nearpoint
- 7,202
- 13
- 46
- 74
3
votes
1 answer
Cross-compiling GLib for Windows is throwing an error "'XDG_MIME_TYPE_UNKNOWN' undeclared"
While cross-compiling GLib 2.32.4 with Mingw-w64 for Win32, I ran into the following error:
gcontenttype.c: In function 'g_content_type_guess':
gcontenttype.c:335:3: error: 'XDG_MIME_TYPE_UNKNOWN' undeclared (first use in this…

Nathan Osman
- 71,149
- 71
- 256
- 361
2
votes
2 answers
Undeclared identifier TEncoding delphi7
Hi i want to use TEncoding to convert Tbytes to utf7 but when i use TEncoding
delphi gives following error.
Undeclared identifier: 'TEncoding'
i am using delphi 7.
what to do??

Vinamra Bhantagar
- 137
- 4
- 9
2
votes
1 answer
How do I make Class A a member of Class B without inheriting it?
I have two classes (actually four, but they're not required for this). Let's call them A, and B.
I am trying to declare class B as a member in class A.
My problem is, I need access to a member function inside of class A from class B, but it doesn't…

ConfusedCoder
- 23
- 6
2
votes
2 answers
undeclared identifier error with a structure in C
I have a structure ST_transaction_t that contains 2 structures, an enumeration and uint32_t members, when I declare the structure ST_transaction account1 I get account1': undeclared identifier error. When I remove the enumeration typed member from…

kareem salah
- 23
- 4
2
votes
1 answer
Why does Xcode say that "window" is a undeclared identifier?
I'm trying to write a simple application that switches between views using a Tab Bar.
I have used a guide from Apple's Developer Library:…

Eksperiment626
- 985
- 3
- 16
- 30
2
votes
3 answers
Undeclared Identifier in do while loop, C
#include
#include
int main(void)
{
do
{
//ask for input with 1-8
int height = get_int("Height: ");
}
while (height > 0);
}
And I got the error code: use of undeclared identifier "height" (in the…

Hashaam Zafar
- 21
- 2
2
votes
2 answers
Why 'Mobilisten framework' works well with swift project and not with objective-c projects, when added via pods
I have added Mobilisten framework through pods, following instructions on https://www.zoho.com/salesiq/help/developer-section/ios-mobile-sdk-installation.html.
While it builds and runs successfully in a Swift project, I’m getting errors when I try…

akciIIe
- 46
- 7
2
votes
1 answer
C# 7.0 Unity game development issue, identifier from 4.0 does not work anymore
I'm working on a C#7.0 coding project for Unity3D, and am building a script for doors. This comes directly from a project in the book Unity3.X Game Development Essentials which was recommended to me by a gaming professor. I'm learning code on my…

L. Dostal
- 123
- 1
- 1
- 5
2
votes
2 answers
Why is there a "Identifier is undefined error " even after it's been defined?
I've created a header file ll.h with 2 classes in it. The code goes something like this:
#pragma once
#include
#include
using namespace std;
class N{
public:
int data;
N *next;
public:
N(int);
~N();
};
…

Nithin K
- 105
- 3
- 7
2
votes
1 answer
Swarmed with identifier errors
I've been programming a Monopoly game for a final project. So I thought I was on a roll, and that I had everything figured out with my psuedocode. But, it seems I forgot how to deal with includes properly, I know that is the issue since I was able…

Alex
- 620
- 1
- 6
- 20
2
votes
1 answer
Undeclared variable c in structure pointer function
I am still learning C and I am doing an exercise where I have to program a car database. In the main function I declared an array of 100 pointers to 'carinfo_t' structures. In the function '*createcarinfo' a new carinfo_t instance should be created.…

blabla444
- 85
- 5