qxld

 

After everything is compiled, you will need to use qxld command to link the dynamic library.  It has the following syntax:

 

qxld -dynamic -o library_name sources.obj -L$LYCIA_DIR/lib -l4glc

 

Here -dynamic flag instructs the linker to create a dynamic C library, -o flag contains the name of the library which it will have when built. The -L flag links the library to l4glc. Sources.obj are the compiled C source files which need to be included into the library.

 

Here is an example:

 

qxld -dynamic -o mylib mysource1.obj mysource2.obj -L"%LYCIA_DIR%\lib" -l4glc