This is the first time that I created a dynamic library in linux and although the program works, I do not get the correct information about the library when executing ldd.
I explain the details:
1) Source code:
bye_fn.c:
---------
#include <stdio.h>
#include "hello.h"
void bye (const char* name)
{
printf ("\n\n%s, I see you soon !\n\n", name);
}
Here you have used wrong step in programming likes printf ("\n\n%s, I see you soon !\n\n", name) because if you want to print to char name them it can not produce the correct values which is shown as in your given hello ("José");
printf ("Please to meet you. You will work with us. You start next week. Congratulations !\n");
show here i want to inform that first you clear mistakes to find good and accurate result.
#include <stdio.h>
#include "hello.h"
void bye (const char* name)
{
printf ("\n\n%s, I see you soon !\n\n", name);
}