I&#39;m trying to add some code to logger.c which uses functions from res_odbc.c.<br>But during compiling i get the following errors:<br>[CC] logger.c -&gt; logger.o<br>&nbsp;&nbsp; [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o
 alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astmm.o astobj2.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o fixedjitterbuf.o
 frame.o fskmodem.o http.o image.o indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o stdtime/localtime.o strcompat.o tdd.o term.o
 threadstorage.o translate.o udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a -&gt; asterisk<br>logger.o(.text+0x2ba): In function `ast_queue_log&#39;:<br>/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:431: undefined reference to `ast_odbc_request_obj&#39;
<br>logger.o(.text+0x2d1):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:432: undefined reference to `ast_odbc_prepare_and_execute&#39;<br>logger.o(.text+0x2d9):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:433: undefined reference to `ast_odbc_release_obj&#39;
<br>logger.o(.text+0x2543): In function `odbc_prepare&#39;:<br>/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:377: undefined reference to `SQLAllocHandle&#39;<br>logger.o(.text+0x2561):/home/devel/compiled/asterisk-
1.4.13-patched2/main/logger.c:383: undefined reference to `SQLPrepare&#39;<br>logger.o(.text+0x25e7):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:386: undefined reference to `SQLCloseCursor&#39;<br>logger.o
(.text+0x25fa):/home/devel/compiled/asterisk-1.4.13-patched2/main/logger.c:387: undefined reference to `SQLFreeHandle&#39;<br>collect2: ld returned 1 exit status<br>make[1]: *** [asterisk] Error 1<br>make: *** [main] Error 2
<br><br><br>What do i wrong. Is it impossible to call &#39;ast_odbc_request_obj&#39; directly from logger.c?<br><br>Do you have any suggestions?<br>Theo<br><br><br><br><br><br><br><br><br><br>