I built a C++ DLL on Windows using Visual Studio 2010 with a Fortran library I built with the Intel compiler.
I then loaded it into my Java program. Everything works fine on the PC side. When I put my code over to the LINUX side, java gives me this error message: invalid ELF header (Possible cause: endianness mismatch) about my DLL file.
A quick google search has suggestions to add "-fPIC" to their gcc compiler/linker command. Is there an equivalent for Visual Studio? Does this mean I need to have two DLLs built? One for Windows and One for LINUX?