Create the client

In the client, we are using the factorial( ) function present in the dynamic library. A prototype of this function is available in lib_dyanmic.h, present in a different project. We have provided the source code for the dynamic library and client program. When you press the RUN button, it will automatically create the shared object of the dynamic library that can be linked with other objects and open the terminal for you. Execute the following commands in the given terminal to make the dynamic library functions available to the Client:

  • export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
  • gcc client.c -L. -ldynamic -o client
  • ./client

Get hands-on with 1200+ tech skills courses.