I am receiving a wrong ELFCLASS error when compiling andlinking a model on Solaris. How can I correct this?
I am receiving a wrong ELFCLASS error when compiling andlinking a model on Solaris. How can I correct this?
This message indicates that the linker has encountered a 32bit library where it expected a 64bit version, or vice versa.To correct this, ensure that your PATH, LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 environment variables are set correctly. Also, make sure that the PATH search order is such that the correct version of executables are found. For example, you would normally place SunStudio ahead of /usr/ccs/bin, and /usr/ucb/bin at the end. E.g. $PATH:/path/to/sun_studio_11/bin:/usr/ccs/bin:/usr/ucb/bin
Compiling/Linking