babelouest / ulfius

Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
https://babelouest.github.io/ulfius
GNU Lesser General Public License v2.1
1.07k stars 183 forks source link

Compilation issue in auth_example #246

Closed gayathriaccount closed 1 year ago

gayathriaccount commented 1 year ago

Hi, The below error is encountered when trying to compile the auth_example program available in the example_programs.

make -f Makefile clean all

rm -f *.o auth_client auth_server gcc -c -Wall -I../../include -I../include -D_REENTRANT auth_client.c -DDEBUG -g -O0 auth_client.c: In function ‘main’: auth_client.c:113:11: warning: implicit declaration of function ‘ulfius_send_http_request’; did you mean ‘ulfius_init_request’? [-Wimplicit-function-declaration] res = ulfius_send_http_request(&req_list[0], &response); ^~~~~~~~ ulfius_init_request gcc -o auth_client auth_client.o -lc -lgnutls -lulfius -lorcania -L../../src -lyder auth_client.o: In function main': /var/lib/jenkins/coma/coma_libs_linux/ulfius-2.7.11/example_programs/auth_example/auth_client.c:113: undefined reference toulfius_send_http_request' /var/lib/jenkins/coma/coma_libs_linux/ulfius-2.7.11/example_programs/auth_example/auth_client.c:124: undefined reference to ulfius_send_http_request' /var/lib/jenkins/coma/coma_libs_linux/ulfius-2.7.11/example_programs/auth_example/auth_client.c:135: undefined reference toulfius_send_http_request' /var/lib/jenkins/coma/coma_libs_linux/ulfius-2.7.11/example_programs/auth_example/auth_client.c:146: undefined reference to ulfius_send_http_request' /var/lib/jenkins/coma/coma_libs_linux/ulfius-2.7.11/example_programs/auth_example/auth_client.c:157: undefined reference toulfius_send_http_request' auth_client.o:/var/lib/jenkins/coma/coma_libs_linux/ulfius-2.7.11/example_programs/auth_example/auth_client.c:168: more undefined references to `ulfius_send_http_request' follow collect2: error: ld returned 1 exit status make: *** [Makefile:42: auth_client] Error 1

Could you please help us in resolving this error and get succeeded in execution of the program.

Thanks and regards Gayathri