Automake/autoconf won't work with lex/yacc [closed] - yacc

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.

Related

clang: error: no such file or directory: 'DDEBUG' [closed]

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!

THEOS Error llvm-g++-4.2: Invalid arch name : export [closed]

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

Teradata Viewpoint Alerts and BTEQ [closed]

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.
Is there any way to pass a Viewpoint Alert Property (in this particular case ${SessionNo}) to a BTEQ script?
I'm using 13.10 version and the Notification Service (which can execute a bteq script and pass it the TDPID, but i don't know nothing about the other properties)
I would suggest that you create a KSH script that calls BTEQ as an inline script.
Your script will need to be copied to Viewpoint Linux server at: /opt/teradata/client/
cam/tdnotification/usrcmd/
Then when you configure the Alert Action Set in Viewpoint instead of selecting the checkmark next to BTEQ select Run A Program. Choose the environment and program from the two dropdown boxes. There will a text box where you can define arguments such as SessionNo that you can refer to in your script.
-SessionNo ${SessionNo} -db ${databaseName}
Since the BTEQ script is embedded in the KSH the variable substitution should work without any problems.

Force line-breaks in eclipse CDT formatter [closed]

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

NSManagedObject is undefined? [closed]

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.