[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dinamic programs in C



> I'm trying make a dinamic program using dlfcn.h lib , to use
> dlopen (to open a module) , dlclose(to close) ..
> But when I try compiler, gcc say that don't know dlopen, and dl*
> comands in the .C source prog ... What is happen ? I try
> compiler using #gcc -rdynamic myprogdynamic.c

You need to link the proper library that provides dlopen/dlclose,
namely -ldl. -rdynamic is irrelevant. See dlopen(3) for details.

Regards,
Martin



Reply to: