My Oracle Support Banner

Trying to build Static Pro*C Application Gives Undefined Reference To `Sqlcxt' ,`Sqlglm' Sql_error (Doc ID 386710.1)

Last updated on FEBRUARY 03, 2022

Applies to:

Precompilers - Version and later
Information in this document applies to any platform.Symptoms

Using Pro*C  to build static applications - for example sample1.pc

make -f $ORACLE_HOME/precomp/demo/proc/ build_static OBJS=sample1.o EXE=sample1

result in unresolved references:

sample1.o(.text+0x3b6): In function `main':
: warning: the `gets' function is dangerous and should not be used.
sample1.o(.text+0x49): In function `sql_error':
: undefined reference to `sqlglm'
sample1.o(.text+0xe6): In function `sql_error':
: undefined reference to `sqlcxt'
sample1.o(.text+0x337): In function `main':
: undefined reference to `sqlcxt'
sample1.o(.text+0x61c): In function `main':
: undefined reference to `sqlcxt'
sample1.o(.text+0x789): In function `main':
: undefined reference to `sqlcxt'
collect2: ld returned 1 exit status
make: *** [build_static] Error 1


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.