Sun Studio 12 Update 1: C++ User's Guide

15.1.1 Using the Complex Library

To use the complex library, include the header file complex.h in your program, and compile and link with the -library=complex option.