6.3. Diagnosing link-time errors

The C and C++ compiler drivers (see 1.7.1, “Default compiler drivers” on page 30) handle object file linking by invoking the system link editor ld with the appropriate options and flags. There is no need to use ld directly to link edit your C and C++ object files. This section describes some of the more common link-time errors that you may encounter during development.

6.3.1. Unresolved symbols

When linking your application with many libraries, particularly those supplied by a third party product, such as a database, it is not unusual during the development cycle to see a linker error warning about unresolved symbols.

The system link editor accepts input such as object files, shared object files, archive object ...

Get Developing and Porting C and C++ Applications on AIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.