Menu

#1 AGI-C-API compilation error - Help needed

1.0
open
nobody
None
2020-10-30
2020-10-30
No

Hello Romulo,
I am using your agi-c-api library. (https://sourceforge.net/p/agi-c-api/)
That is working fine but when I add mysql connection inside agi script and then do "make sample" it gives us error.
can you please help me on this to compile mysql connection as well withing your main agi ? I have attached agi script also. Thanks.

Error is mentioned below while doing "make sample"
root@callcenter1:/tmp/AGI-C-API# make sample

gcc -Wall -Werror -o ./bin/libagicapisample ./ejemplo/ejemplo.c -lagicapi
/tmp/ccKoatt2.o: In function main': ejemplo.c:(.text+0x3d): undefined reference tomysql_init'
ejemplo.c:(.text+0x6a): undefined reference to mysql_real_connect' ejemplo.c:(.text+0x7f): undefined reference tomysql_error'
ejemplo.c:(.text+0xba): undefined reference to mysql_query' ejemplo.c:(.text+0xc6): undefined reference tomysql_use_result'
ejemplo.c:(.text+0xf7): undefined reference to mysql_fetch_row' ejemplo.c:(.text+0x10e): undefined reference tomysql_free_result'
ejemplo.c:(.text+0x11a): undefined reference to `mysql_close'
collect2: error: ld returned 1 exit status
Makefile:27: recipe for target 'sample' failed
make: *** [sample] Error 1

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.