I'm making an application using glade 2 in ubuntu 18.04, I am coding with C, in this application I want to use a TWILIO SMS API, I've downloaded the code of the API following this link: https://www.twilio.com/docs/sms/tutorials/how-to-send-sms-messages-c here is my callbacks file which contains 1 button signal where I call my API function named twilio.c
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "callbacks.h"
#include "interface.h"
#include "support.h"
#include <gtk/gtk.h>
#include <math.h>
#include <cairo.h>
#include "twilio.h"
void
on_button1_clicked (GtkButton *button,
gpointer user_data)
{
char account_sid[100] = "ACXXXXXXXXXXXXXXXX" ;
char auth_token[100] = "fxxxxxxxxxxxxxxxxx" ;
char message[500] = "cher client , ....." ;
char from_number[100] = "+000000000";
char to_number[100]="+000000000" ;
char picture_url[50] = "" ;
bool verbose = FALSE ;
if ( twilio_send_message(account_sid,
auth_token,
message,
from_number,
to_number,
picture_url,
verbose) )
printf("message envoyé") ;
}
the code of my fonction twilio is the same in the link .
when i tap make
it get this error :
twilio.o : In the function "twilio_send_message": /home/user/Bureau/graf/graf/src/twilio.c:53 : undefined reference to "curl_global_init"
and the same for all the functions in twilio.c any idea! I'm sure that I installed libcurl4 but I don't get the problem. thank you