» Home » declared » Page 1
field declared void / struct or variable not declared in this scope
by php in Programming Languages

I've been teaching myself some OpenGL using SFML for creating windows/handling inputs, etc. My main.cpp started getting a bit unwieldy so I decided to start splitting my code up. I created a 4X_vertex.h and a 4X_vertex.cpp (4X is the name of the project) and moved the relevant functions and structs out of my main and into these files. However, when I compile, I get the error


Lisp warning: xx is neither declared nor bound, it will be treated as if it were declared SPECIAL
by DigDog in Programming Languages

I am new to lisp and am writing a few simple programs to get more familiar with it. One of the things I am doing is writing a recursive and iterative version of a factorial method. However, I have come across a problem and can't seem to solve it.

I saw a similar error at
but a solution wa

C++ Why am I unable to use an enum declared globally outside of the class it was declared in?
by jrf in Programming Languages

Right now, my project has two classes and a main. Since the two classes inherit from each other, they are both using forward declarations. In the first object, right underneath the #include statement, I initialize two enums, before the class definition. I can use both enums just fine inside that class. However, if I try to use those enums in the other class, which inherits from the first one, I

Global initialized variables declared as “const” go to text segment, while those declared “Static” go to data segment. Why?
by jmccliment in Programming Languages
#include <stdio.h>
const int str[1000] = {0};
int main(void)
printf("arr is %d
", str[0]);
return 0;

Has the following output:

[-exercises/adam/stack2]:size a.out
text data bss dec hex filename
5133 272 24 5429 1535 a.out


Accessing variable declared in aspx.cs in aspx or variable declared in ascx.cs ascx page
by Samuel K in Programming Languages

I was asked a question in an interview, weather we can access a publically declared variable which is been declared in aspx.cs or ascx.cs page in aspx or ascx page respectively.

C++: Has Not Been Declared
by David in Programming Languages

I have seen this type of error everywhere and, although I have looked at the answers, none seem to help.

I get the following error with the following piece of code:

error: 'A' has not been declared


#include "A.h"
class B{
static bool doX(A *a);


include "B.
TAGS : Been Declared

Go — declared and not used
by Rhoxed in Programming Languages

Hi everyone — what's wrong with this code?

package main
import "fmt"
// fibonacci is a function that returns
// a function that returns an int.
func fibonacci() func() int {
prev := 0
curr := 1
return func() int {
temp := curr
curr := curr + prev
prev := temp
return curr
TAGS : declared used

NDK: has not been declared
by knockout-2.0 in Programming Languages

I am compiling the C++ code using Android native library NDK but I am getting the following errors while trying to include the g729a.h file in g729_jni.cpp:


Compile++ arm : g729_jni <= g729_jni.cpp
/usr/src/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs/g72
TAGS : been declared

C++: which struct is to be declared first?
by Chaos in Programming Languages

I have written a program in which i use C++ stl set. There is a struct event from which the set is being constructed, and its corresponding binary predicate.. struct comp to define the ordering between them in the set.

The code portion looks as follows:

struct event
int s;
int f;
int w;

objective c int not declared
by orange-man in Programming Languages

I am creating a very simple calculator. To save the first user inputed float, i save it as a string in the addition action as to save it when they click on the addition button. Then later I call upon it again to add it to the second user inputed float. However when i call upon it again it gives the error: Use of undefined identifier num1. The same thing ha

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .