Re: [q-lang-users] Request to add new reserved words "quote" and "QUOTE" to Q
Brought to you by:
agraef
From: John C. <co...@cc...> - 2006-05-19 02:55:48
|
Albert Graef scripsit: > That's in CVS now. A simple example is attached below. Thanks. > Looks like Cygwin gcc is not very clever in resolving dependencies in > linked shared libs. With both Linux gcc and mingw I only have to specify > -lqint. Not a big deal. > >Should I be using libtool, and if so, how? > > Then you'll have to use libtool to compile your sources, too. If you > want to do this, the easiest way to go is to autotoolize your program > and use an automake Makefile. Automake makes handling libtool libraries > much easier. I don't think I want to go there, at least not yet. > >2) More seriously, the sample programs in Appendix C crash when trying > >to pass additional arguments to qexecl and qexeclx, either with a SIGHUP > >or with a SIGABRT. The poor man's Q interpreter will crash if you give > >it command-line arguments other than the script, and the hello-world > >program crashes when it tries to load the internal script. > > Strange. Both programs work just fine over here, both on Linux and > Windows/mingw. Do you have a gdb backtrace? Well, running under gdb causes an entirely consistent pattern of crashes, no matter how many arguments there are or are not. I've attached gdb traces for pmq and for a modified version of hello (also attached). In essence, there is a SIGSEGV inside cygwin1.dll, the master DLL for Cygwin, when _sigfe is invoked from resolve (q.c:1809). However, there is no explicit reference to _sigfe, so it may be hidden behind a macro. > Everything o.k. with that. qexeclx() creates a temporary script file > which is removed again as soon as the interpreter has loaded the script. Ah. -- John Cowan co...@cc... http://ccil.org/~cowan This great college [Trinity], of this ancient university [Cambridge], has seen some strange sights. It has seen Wordsworth drunk and Porson sober. And here am I, a better poet than Porson, and a better scholar than Wordsworth, somewhere betwixt and between. --A.E. Housman |