Linking thread-safe Informix general libraries to an ESQL/C module in a Windows environment
To create a thread-safe IBM® Informix® ESQL/C application, you must perform the following steps:
If you are not creating the Informix ESQL/C application with threads, omit the -thread option. Although the Informix DLLs are thread safe, your non-thread-safe application does not use the thread-safe feature when you omit -thread.