The default location of the interfaces file is the directory pointed to by the SYBASE environment variable. Since the SYBASE environment variable must point to the load directory, then one of the following statements also must be true when users run a Monitor Client Library application:
The interfaces file must be located in the load directory, or
The Monitor Client Library application code must override the default location of the interfaces file.
To override the default location, the Monitor Client Library application must call the smc_connect function, specifying an explicit value in the interfaceFile parameter. In most cases, it would be appropriate to obtain the value of the interfaceFile parameter from the user at start-up time, as a command-line argument, from an X resource file, or from an interactive dialog box.
For more information about the smc_connect function, see the Adaptive Server Enterprise Monitor Client Library Programmer’s Guide.