From what I can see in the compilation step output, there's no reference to the files I added in Makefile.ag. Is this where I'm suppose to change:

lib__udf = {
        MODULE
        DIR = libdir/monetdb5
        SOURCES = myfile.c myfile.h udf.c udf.h udf_impl.h
        LIBS = ../../../../monetdb5/tools/libmonetdb5 \
                   ../../../../gdk/libbat
}

I changed this, called ./configure on the root src of monetdb, and then recompiled (./make) from the udf folder, but the compilation step doesn't reference 'myfile' anywhere.

thanks

On 12/18/2012 05:33 PM, Miguel Ping wrote:
Thanks, I missed the 'recompile' step when experimenting.
Although it's compiling ok right now, I'm having a different problem in 
finding the udf, but I suppose I must have done something wrong in the code.

TypeException:user.s1_1[31]:'batudf.hllagg' undefined in: 
_41:bat[:oid,:str] := batudf.hllagg(_22:bat[:oid,:str], 
_39:bat[:oid,:oid], _40:bat[:oid,:oid])


On 12/18/2012 04:56 PM, Martin Kersten wrote:
Dear Miguel

If you use the examples udf extension, then you simply update
the Makefile.ag in the corresponding directory, call configure
and recompile.

regards, Martin

On 12/18/12 5:51 PM, Miguel Ping wrote:
What are the steps required to include additional .c and .h files in
compiling user-defined functions? It was a long time since I used
autotools and such; it seems to me that I would need to change the
monetdb configuration files in order to regenerate the Makefile.* files
within the UDF dir.

My problem is that I require alot of code for my UDF, and right now I'm
copy/paste'ing code to udf.c and udf.h; it would be easier to include
additional .h and .c files for UDF compilation.

Thanks
_______________________________________________
users-list mailing list
users-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/users-list
_______________________________________________
users-list mailing list
users-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/users-list


_______________________________________________
users-list mailing list
users-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/users-list