Home Tutorialhelp Comment Compile error for Objectiv c program (NSObject.h)

 
 

Comment

Hemen
Compile error for Objectiv c program (NSObject.h),
February 9, 2009 at 1:09 AM

Hi all,
I have try to run the above program but its not running and compile error is generated like following...

Please help me some out for this stuff...


In file included from MyClass.m:2,
from main.m:2:
MyClass.h:1:31: Foundation/NSObject.h: No such file or directory
In file included from MyClass.m:2,
from main.m:2:
MyClass.h:6: error: cannot find interface declaration for `NSObject', superclass
of `MyClass'
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

Compile error - Java Beginners
Compile error  I get this error when compiling my program: java:167... if the string is a class declaration. Class declarations begin with a modifier public... true; } /** * Determines if the string is a method declaration 

iPhone

Class and Method declaration and definitions
Class and Method declaration and definitions  ... different from C and C++. To declare a new class objective-C uses @interface directive.       Declaration of a simple class: MyClass.h 

Java Beginners

compile error
program with Test.java and try to compile with javac test.java an error like...compile error  Hello All for example public class..."); } } i have save this program with A.java. Then I executed this program javac A.java 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Development process Questions

i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public...,struts jar files and i got an error in saveErrors() error Heading cannot find 

C Tutorials

C Array Declaration
C Array Declaration       In this section, you will learn how to declare an array in C... will look for the program stuff to compile inside this function first. main function 

iPhone

Objective C
be used to compile the Objective C program.   Objective C on Mac I this section we will show you how to compile and run Objective C program... we will show you how to compile Objective C program on windows and Max OS x 

Programming Tutorials

C++Tutorials
of standard C libraries are written beginning with a c. In order for the program... class should be represented in C++ as an abstract class. The reasons include... to learn this strange method of programming. Dont forget, use a decent C++ book 

Java Beginners

Compile time error
Compile time error  Hi, When i compile my simple program in cmd am getting a error like "Javac is not a recognized as an internal or external command, operable program or batch file" How to resolve this problem ????   

Java Beginners

compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get 

Java Beginners

compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get 

Programming Tutorials

Namespace Declaration
__FUNCTION__; } class One { function myMethod() { echo __METHOD...Namespace Declaration: The term namespace is very much common in OOP based... a namespace, but in general class, functions, and constants are placed for easy 

Java Beginners

compile
compile  how to compile .class files using eclipse 

Java Beginners

variable declaration in c and c++
variable declaration in c and c++  Comparison and an example of variable declaration in C and C 

Java Beginners

method overloading in c program
method overloading in c program  how is method overloading in C program is different from C++ program 

Java Technology Tutorials

Objective-C program with multiple parameter
Objective-C program with multiple parameter       Objective-C enables programmer to use method... method for more than one parameter -(int) sum: (int) a andb: (int) b andc:(int)c 

iPhone

Compiling Objective C
;  In this section we will show you how to compile Objective C program on windows and Max OS x machine. Compiling Objective C program is necessary as it generates the executable program that can run. Compiling Objective C 

General

Example to compile a java file with the help of the program
below: For this we are taking a class Compile Hello, Inside the main method we... Example to compile a java file with the help of the program... are describing you the way to compile the java file with the help of the java program 

Java Beginners

java Method Error - Java Beginners
java Method Error  class mathoperation { static int add(int...); } static int div(int c,int d) { return(c/d...-n); } } class mathdemo { public static void main(String args 

Java Beginners

Java compile error - Java Beginners
Java compile error  I am having trouble compiling the Java project... Kindly let me know what is the problem? Secondly, do you know any easy method to compile Java on Mac besides using the Terminal 

Development process Questions

SOLUTION: How to compile Objective C on Windows with GNU Step ?
SOLUTION: How to compile Objective C on Windows with GNU Step ?  <..., except the fact that the above program needs some more instructions to run. Here...;<strong>Compile using the below mentioned command line:</strong>< 

Blog

Sitemap iPhone Tutorial
| Message Expressions and comments | Class and Method declaration... iPhone | Objective C Tutorial | Objective C Introduction | Why... C on Mac | Compiling Objective C | iPhone Application Development 

WebSevices Questions

Unable to compile class for JSP - WebSevices
Unable to compile class for JSP  org.apache.jasper.JasperException: Unable to compile class for JSP When I am trying to access a java file kept... getting above error. Java code in src folder is accepting webservice output 

JSP Tutorials

Method in Declaration Tag
Method in Declaration Tag      ... a Declaration Tag. The syntax of this tag is <%!  --------- %>.  In this simple jsp program we are declaring two methods getName() of type String 

iPhone

Declaring Method in Objective C
. for example… Objective C method declaration with single parameter: + (void) getId...Declaring Method in Objective C In Objective C we can declare two types... denotes the Class method and - sign denotes the Instance method. For example 

Java Technology Tutorials

Class level access
when objective-C program starts and it calls for every class so it is the better...;  Objective-C provides facility of class level access... access. Now we will see how to define method that can be access on class level 

Java Beginners

Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method  Hi there i am a java... that the program recquires a main() method in order to be runned - here is the following code... the GUI as it is more reliable and efficent - the current program that i am working 

Java Beginners

Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method  Hi there i am a java... that the program recquires a main() method in order to be runned - here is the following code... the GUI as it is more reliable and efficent - the current program that i am working 

Java Beginners

Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method  Hi there i am a java... that the program recquires a main() method in order to be runned - here is the following code... the GUI as it is more reliable and efficent - the current program that i am working 

Java Beginners

Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method  Hi there i am a java... that the program recquires a main() method in order to be runned - here is the following code... the GUI as it is more reliable and efficent - the current program that i am working 

Java Beginners

Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method  Hi there i am a java... that the program recquires a main() method in order to be runned - here is the following code... the GUI as it is more reliable and efficent - the current program that i am working 

Java Beginners

Till Slip Program Error Free - No Main Method
Till Slip Program Error Free - No Main Method  Hi there i am a java... that the program recquires a main() method in order to be runned - here is the following code... the GUI as it is more reliable and efficent - the current program that i am working 

Java Beginners

Class and method question, Java?
Class and method question, Java?  Consider a Java class that you..., the method should display an error message and ask the user for a new value... getValue b. implement the class in Java c. Write some Java statements that test 

Mobile Applications Questions

iphone
iphone  how to play sound in alarm made by ekevent class in objective c 

iPhone

Methods in Objective c
; sign makes it a instance method. The method declaration in objective c also take...Methods in Objective c The example discuss about method in objective c. In objective c programming language method can be declared using either "+" 

Java Beginners

error
"+it); } } this is my program i am getting an error saying cannot find symbol class string...error  import java.io.*; public class employee { String name... inside the method 'accept()'. Here is your modified code: import java.util. 

Java Beginners

How to compile and run the JSP
How to compile and run the JSP  Hi Kindly tell me how to run and compile JSP small Program using Tomcat as webserver. I created small program HELLO JSP in HTML and compile the program but it is saying Class o r interface 

XML Tutorials

Emitting DOCTYPE Declaration while writing XML File
Emitting DOCTYPE Declaration while writing XML File  ... a DOCTYPE Declaration in a DOM document. JAXP (Java API for XML Processing... for Emitting DOCTYPE Declaration are described below:-DocumentBuilderFactory 

Java Beginners

main method
class? If no then what will happen in compilation time?   hello No we can not make multiple main with in the same class program fails to compile. Compiler gives error that the main method is already defined in the class 

C++

C Tutorials
compile the C program for any platform and then run. C is one of the most used... a string in C. You can see in the given example, a string and a method substring... C Tutorials       

General

Class names don't identify a class - Java Tutorials
FirstClass()); } } Compile the Test class as C:\>javac -cp .;directory1... declaration is different. The general way to use this class at run time instead of compile time. Consider the Simple Test class given below. Test.java public 

HTML Questions

Unable to compile Servlet
was created by me. To compile my servlet program I did the following: C:\apache...Unable to compile Servlet  First I installed the tomcat server in C... JAVA_HOME with the value C:\Program Files\Java\jdk1.6.0.14 Then I created 

Java Technology Tutorials

Class
the class, object and it's methods. This program uses the several values... through the several objects created for the several class. In this program...; class_name object_name = new class_name(); Output of the program :  

UML Questions

c++
c++  Write the definition of the class dayType that implements the day of the week in a program. The class dayType should store the day, such as Sunday for Sunday. The program should be able to perform the following operations 

Java Beginners

JAVA Compile Question ?
JAVA Compile Question ?  I'm unable to compile this file and not sure... java.io.IOException; public class FileStatistics2 { public static void main(String[] args) { Path textFile = Paths.get("C:\\quote.txt"); Path 

JSP Interview Questions

Declaration tag
; Declaration in JSP is way to define global java variable and method. This java variable method in declaration can be access normally. Normally declaration does... does not reside inside service method of JSP. Declaration tag is used to define 

Java Beginners

Method overloading in java program
Method overloading in java program  How can we use method overloading in java program?   Method overloading:?In method overloading methods... created a class named MethodOverloading. Method add () is overloaded in our 

CVS Questions

c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D 

Java Beginners

compile this program and let me know the resolution
compile this program and let me know the resolution  class Maxof2{ public static void main(String args[]){ //taking value as command line...+" is greater than "+i); } } please compile and let me know the resolution   

JDBC Questions

i cant find any compile time error but there is runtime error.
i cant find any compile time error but there is runtime error.  import java.sql.*; public class JDBCExample{ public static void main(String args...){ System.out.println("Error:connection not created"); }   Hi 

iPhone

Objective-C keywords
-C language. Objective-C is a superset of C language, so program written in c and C++ should compile as objective-c. It provides some additional keywords... Objective-C keywords       

JSP Servlet Questions

JSP error: class UserForm not found in class model.UserAction
JSP error: class UserForm not found in class model.UserAction  etting the following error in the program..wat shod i do to remove this?I am using... org.apache.struts.actions.IncludeAction; public class UserAction extends DispatchAction { private 

Java Beginners

How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?  run: java.lang.NoClassDefFoundError: filecopy... class: filecopy.FileCopy. Program will exit. Exception in thread "main" Java 

Java-Tutorials

How to Program in Java
if there is no error in source code. Step 4: Execute the program. This is the final step... the program: C:\javatutorial\example>java HelloWorld Continue reading.. Read more...This tutorial tells you how to program in Java? As a beginner you must know 

iPhone

Objective C Hello World
World program. In the next section I will show you how to compile and execute... with .m extension here 'hello.m' in newly created directory c:/objectiveC... Objective C Hello World      

Java Beginners

compilation error - Java Beginners
the file "Group.java" in the c: drive . 2)For compile the program...compilation error  sir what is the error inthis code after... in thread "main" package org.array; import java.io.*; public class Employee 

Java Beginners

Java Program Complication error - Java Beginners
Java Program Complication error  Hi there, I have this program I had to write called ThreeArrayLists.java, but I keep getting this error "use of unchecked or unsafe operations" This is the criteria for the program 

WebSevices Questions

Compile error - WebSevices
Compile error  Hello, How to read .pdf file using Javascript/php. Any one send the code 

General

Java error class
. For this we have a class name Error class. Inside the main method we assign... Java error class     ... able class. This mean the application does not able to catch the error occurred 

Java Beginners

Exception Handling-Error Messages in Program
Exception Handling-Error Messages in Program  Sorry about the first code block: import java.util.*; class GradeException extends Exception{ public GradeException(String s){ System.out.println(s); } } ----jGRASP exec: javac -g C 

Core Java

Difference between Java and C++
Difference between Java and C++ Java is an Object Oriented... that the code that run on one platform need not required to compile again... Java Virtual Machine (JVM). Everything in java is treated as an object. C 

Java Beginners

Exception Handling-Error Messages in Program
","C","D","F","I"}; ^ ArrayList.java:6: 'class' or 'interface' expected List l...Exception Handling-Error Messages in Program  Hi Friend, I am having... with this. Here is the code with the error messages as Follows: import 

Java Beginners

compile and run java program
compile and run java program  Hello, everyone!!! I just want to ask if you anyone here knows how to compile java file in linux specifically UBUNTU... do I compile and run this file using the terminal of ubuntu... By the way, I am 

Java-Tutorials

Java Abstract Class Example
and call the method of abstract class. Then we will compile and execute the program.... Declaration of abstract class An abstract class should be declared as follows... will try to create its object and call its method then we will try to compile 

JSP-Tutorials

DECLARATION IN JSP
DECLARATION IN JSP In this Section, we will discuss about declaration of variables & method in JSP using declaration tags. Using Declaration Tag, you... declaration with a semicolon. The declaration must be valid in the Java 

Java-Tutorials

Array declaration in Java
() method is used to sort an array: import java.util.Arrays; public class... an Array: int OneDArray[] = {98, 95, 91, 93, 97}; Array iteration public class..., 91, 93, 97] After sorting: [91, 93, 95, 97, 98] Copy Array: copyof() method 

iPhone

Objective C Tutorial
-c program, set the environment for the code then compile and run the program... for Mac, iPode and iPhone. To learn Objective-C you must have prior programming... Objective C quickly and start developing applications for iPhone and Mac operating 

Java Beginners

Sub class of a previous java program
java program is this, import java.util.*; class EmployeeSalaries...Sub class of a previous java program  Create a Faculty subclass... a changestatus() method that changes the rank or category respectively 

Mobile Applications Questions

what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example 

Mobile Applications Questions

what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example 

Java Beginners

track array declaration
track array declaration  how to track an array declaration in a input program 

Java Beginners

I/O Program output error
I/O Program output error  Hello All, I am working on a program... of the program in that it reads the text file and analyzes it, however I need it to take... java.util.TreeSet; /** * * @author zubeda.a.hemani */ //This program reads 

Tutorials

Iphone hello world example
Iphone hello world example In this tutorial an iphone based hello world... we will find useful while dealing with large and complex iphone or mac os applications. So lets start building your iphone first hello world example. Before 

iPhone

Dynamic Types in Objective-C
is of the given class or not, given method is member of the given class or not etc. Table... Dynamic Types in Objective-C       Objective-C provides many methods to work 

Java Beginners

c++ program of inheritance
c++ program of inheritance   Assume that a bank maintains two kinds... a class account that stores customer name, account number and type of account.... (b) Display the balance (c) Compute and deposit interest. (d) Permit 

Java Beginners

about inner class
(); } } in this i got compile time error as: cannot find symbol method m2() class Outer please tell me, if any coding error and tell me the resolution...(){ System.out.println("Inner class Method"); } } public void m2(){ Inner i = new Inner 

Mobile Applications Questions

@Protocols in Objective C
, it declares the method that can be further implemented by any class...@Protocols in Objective C  Understanding @Protocols in Objective-C   @protocol in objective c @protocol is the keyword type in Objective C 

iPhone

Why Objective C?
for Mac System and iPhone. Why we use objective c?     It has... be postponed until the program is running. Objective-C?s dynamism has two major... Why Objective C?       

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package... com.mysql.jdbc.Connection; /** * Servlet implementation class Modifystdfamily */ @WebServlet 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package... com.mysql.jdbc.Connection; /** * Servlet implementation class Modifystdfamily */ @WebServlet 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package... com.mysql.jdbc.Connection; /** * Servlet implementation class Modifystdfamily */ @WebServlet 

Java Beginners

error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner...; hi friend, you are defining the add and sub method at the wrong place 

Java Beginners

error
error  import java.io.*; public class sereies { public static void main(String args[])throws IOException { BufferedReader keyin=new... is"+sum); } } this is my program i need to print the series (1+2/12)+(1+2 

General

Final method in java
. Final class : final class A { } class B extends A { } This is a compile time error because final class cannot be inherited. Final method : public class...() // Error Final method cannot be overridden { System.out.println("hi 

Java Beginners

How to compile and run Java program
How to compile and run Java program  How to compile and Java program..., For compiling and running the Java program from command prompt you should must have JDK... tutorial Compiling and Running Java program from command line. If Java 

Java Beginners

java error - Java Beginners
(ClassLoader.java:316) Could not find the main class: Test. Program will exit. C.... But if I want to run that program the fetches me the following error. For example for file: Test.java C:\Program Files\Java\jdk1.6.0_17\bin>javac Test.java 

General

Class
and declaration of method by a given example. In the given example we create a main... is outside of the main class and define a method "display" in it. Now... display() method in main class. The class "Example" is the blue print 

Servlet Interview Questions

how to compile and run servlet program
how to compile and run servlet program   hello sir/mam i hve installed tomcat5.5 version and also have jdk1.6.0_14 installed but not able to run it or compile i m doing it first tyme pls help me in sorting out this problem. i hve 

IoC Questions

objective c in iphone
objective c in iphone  how to minimize the uiview iin window effect in iphone..... rly me soon 

General

Java error code
Java error code       Java Error code are the set of error that occurs during the compile... in understanding a Java error code. For this we have a class name 'Error code'. Inside 

General

First Java Program
the file  and issue the following command to compile the program: C:\javac... and then compile and test the same on your development machine. Write first Program...://www.roseindia.net/java/master-java/helloworld.shtml Compile and Test the Program Java 

Software Services

iPhone Application Development
integration of it with Cocoa, a developer can develop world-class applications for iPhone... compile and debug applications for the ARM processor that run on iPhone OS... in the iPhone SDK. Objective-C gives flexibility to Cocoa Framework 

Development process Questions

c++ - Development process
.At that time compiler generate one error (line 3:class Arm).error is declaraion syntax...c++  how the user create our own header file in c++ programs.i have... immediately. //starting Arm.H #ifndef _ARM_ #define _ARM_ class Arm 

Ajax Questions

c++ new, delete, string class
c++ new, delete, string class  Write one program containing all these string exercises. Read a string from the user into a string named string1. Test it with the data: Good morning Print the following heading and the data 

General

Exceptional Example in Java
;    When an error occurs in a method, Java creates an object... it to the program by throwing the object of exception method. The Exception Object states the information of type of error and status of program during the exception 

JSP Servlet Questions

Error in Custom tag program - JSP-Servlet
Error in Custom tag program  Dear Sir,This is my problem concern... to an error in /Home.jsp line 1... javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class MyTag extends 

iPhone

Objective C on Mac
Objective C on Mac       I this section we will show you how to compile and run Objective C program on Mac machine. Compiling Objective C on Mac OS x To Compile Objective-C 

IoC Questions

iphone sdk-objective c
iphone sdk-objective c  how to delete random value which is got from the random function in an array 

Advertisements Advertisements
 

 

 

DMCA.com