This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I was working in a seemingly unrelated area of my Xcode project when I started getting this build error:
It seems that NSManagedObject is undefined. The core data framework is still in my project and included in the link phase of the build process.
If I change Record to be a subclass of NSObject, the errors go away, so it must have something to do with Core Data or the way that it's included in my project. I didn't change anything having to do with the framework when this started occurring, however.
Any ideas about what could be going on here?!
Thanks!
someone on the Apple Dev Forums helped me solve this one. I was indeed missing a #end, but it had nothing to do with this header file. It was in a completely unrelated header file, one that didn't import Record. It imported a class that itself imports Record . . . anyway, little point in guessing about why the compiler came up with the error that it did.
The solution was (obviously) to look through my header files and find the one that was actually missing a #end after the #interface declaration. In retrospect, it seems rather obvious.
Related
I have a problem with several references in my VB.NET project.
For example I have this line of code:
Dim m As New Chilkat.Email
It comes from the library "ChilkatDotNet45.dll".
When I click on "References" and locate this dll, I can see that it has the settings "Use local copy" and "Do not include interop types".
When I switch to Release mode, the compiler tells me that "Chilkat.EMail" is not defined.
I have this problem with several DLLs, so it is not specific to Chilkat.
Can somebody tell me what I did wrong?
Thank you.
One of the standard approaches to solving any programming-related issue is trying to reduce the scope of the investigation. If you have a big project, in which something doesn't work, try to create a smaller project, and try to replicate desired functionality in it. Reduce as much as possible, down to a brand new project with maybe 5-10 lines of code in it.
If you were unable to solve your problem after making a reduced test case, now it's good time to post it on StackOverflow. I am usually reducing problems while writing a question on SO (not before, as one might think), constantly thinking "ok, is it minimized enough"; and this is how 90% of the questions never get posted - I often find a solution along the way of reducing my question to bare bones. :)
In your case, can you build a simplified project which has this problem and post a link here? We could then try switching Debug to Release on our machines and see if the we can reproduce. There are too many options to do the guesswork.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I want to use ALog() and DLog() instead of NSLog(). Hence, I followed the instructions given on this link.Following the instructions, I added DDEBUG to my OTHER C FLAGS in my target. But on running it fails and gives following error.
clang: error: no such file or directory: 'DDEBUG'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I also want to know that how to check whether Configuration is set to Debug (according to given link I need to check this).
Are you sure that you added -DDEBUG and not DDEBUG?
EDIT: To check that your Build Configuration is set to Debug in Xcode 4, click on the name of your app in the toolbar, where it says "Scheme":
Then click Edit Scheme:
And if it says Debug under Run (your app).app you're golden!
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I'm using iOS SDK 6.1 and am trying to make a jailbreak tweak using THEOS. I used the default tweak template (5), created the project, built it, and got an error:
collect2: ld terminated with signal 6 [Abort trap: 6]
I looked it up, found this response: error "ld terminated with signal 6" for theos project after upgrade to Xcode 4.5
According to that article, I added this to my MakeFile:
export ARCHS=armv7 export TARGET=iphone:latest:4.3
I rebuilt it and came up with this error:
llvm-g++-4.2: Invalid arch name : export
I looked and could not find why it is giving me that answer - any ideas? Thanks!
Your ARCHS variable and TARGET variable should not be on the same line.
It should look like this:
export ARCHS=armv7
export TARGET=iphone:latest:4.3
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I'm trying to get Eclipse to stop squashing my enums onto a single line. When searching online I keep seeing people (eg this question) referring to a 'force split' checkbox, but I'm not seeing one in my Formatter options (in CDT Juno). Is this a java-specific option?
There is a checkbox 'never join already-wrapped lines', is this what they mean? Unfortunately I already Formatted my files assuming that 'every element on a new line' actually meant 'every element on a new line', so this doesn't help
On the 'Line Wrapping' tab I have selected 'Wrap all elements, every element on a new line', but this doesn't seem to be having any effect.
I don't think it's Java specific. I downloaded the CDT version of Juno and the 'force split' checkbox is there.
My version of CDT Juno was: Juno Service Release 1
Build id: 20120920-0800
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I have the following problem iwth autoconf/automake: I have a couple of files generated written for flex/yacc. I added the following to configure.ac:
AC_PROG_YACC
AC_PROG_LEX
In the Makefile.am I wrote the following:
PARSER = parser.yy scanner.ll
AM_YFLAGS = -d
BUILT_SOURCES = parser.h
appname_SOURCES = analyze.cc (various other sources) \
$(PARSER)
When I try to compile, every object is being created just fine, but the linking won't work:
g++ (various libs) -o appname appname-analyze.o (various other objects)
appname-scanner.o
(yet more objects) appname-scanner.o (and still more objects)
So automake includes the object twice, which screws up the build entirely and results in a lot of multiple definition errors. I would appreciate it if you could tell me what I am doing wrong or else show me an automake project where lex/yacc files are processed successfully.