Compiling and linking the shared library
After you create your C++ file for your new user-defined shared library, compile the C++ file by using the nzudxcompile command.
About this task
The command is in the /nz/kit/bin/adm directory. The compilation process creates the object files that run on the host and on the Netezza Performance Server SPUs.
You compile and link shared library C++ files to make it usable for the UDXs that reference them. You use the nzudxcompile command to compile and link a shared library for the host environment and on the SPUs.
To compile and link a shared library named mylib:
Procedure
Results
- mylib.o_x86
- The object file for the Netezza Performance Server host (i386 Linux® platform on x86).
- mylib.o_spu10
- The object file for the Linux-based Rev10 SPus on IBM® Netezza® 1000 and Netezza 100 models.
What to do next
After you create the compiled object files, you must register the library with the Netezza Performance Server system so that other UDXs can specify it as a dependency.