IBM Support

undefined reference to `dlclose, dlopen or dlsym during compilation

Technote (troubleshooting)


Problem(Abstract)

This technote explains how to resolve an error [error message] that can occur in IBM Informix C-ISAM, 4GL,ESQL-C or SDK.

Symptom

undefined reference to `dlclose'
undefined reference to `dlopen'
undefined reference to `dlsym'


Cause

missing -ldl flag in compile line

Resolving the problem

include the -ldl flag in compile line

Document information

More support for: Informix C-ISAM

Software version: 5.1, 7.2

Operating system(s): AIX, DYNIX/ptx, HP-UX, IRIX, Linux, Platform Independent, Solaris

Reference #: 1426961

Modified date: 2010-12-15