tags:

views:

68

answers:

1

This is my warning.

warning : implicit  declaration of function 'sqlglm'

The warning comes in a bi.pc file.

when i check the bi.c file.

it doesn't include

#include <sqlcpr.h>
#include <sqlca.h>

As .c file generate at compile time. there is no need to edit .c file

i am using linux & gcc compiler,C.

+2  A: 

warning : implicit declaration of function 'sqlglm' shows up when function has been defined in some other header file, but has not been #included, or the function has not been defined at all. So, include the file which defines it or define it yourself.


Update
Use #include "sqlcpr.h" (in case sqlcpr.h is not in compiler's search paths and is in the same directory as the source file)

N 1.1
i tried to include #include <sqlcpr.h>in my .pc file.it shows compilation error.
ambika
please post the compilation error in that case.
N 1.1
ambika
@ambika If you want to get some assistance you need to put some effort yourself. You can always write error message down and type it for SO
qrdl
#include "sqlcpr.h"is not working.it shows error.
ambika
@ambika: well, post the error here.
N 1.1