I've compiled up a lot of .obj files from with VisualCobol 2.1 using Visual Studio.
I need to get these running on a linux server using cobrun.
I tried grabbing the obj files and using "cobrun programname.obj" and get an error "217 Incompatible host for native code file"
Now I know I'm missing something fundamental, but cant seem to find it in the help.
Any pointers would be greatly appreciated.
Steve
Hello SteveMB,
Windows .obj are not compatible with UNIX/Linux.
Also an .obj can't be "executed" with cobrun. Only .int / .gnt generated files can be executed using cobrun.
If your execution target is Linux, I would suggest to use Visual COBOL Eclipse Development HUB Remote Project to gain immediate access to your Linux box.
I've compiled up a lot of .obj files from with VisualCobol 2.1 using Visual Studio.
I need to get these running on a linux server using cobrun.
I tried grabbing the obj files and using "cobrun programname.obj" and get an error "217 Incompatible host for native code file"
Now I know I'm missing something fundamental, but cant seem to find it in the help.
Any pointers would be greatly appreciated.
Steve
Hello Steve:
Object files (.obj) are not meant to be run, but instead eventually to be linked into executable or .dll form.
Executables or .dlls created on Windows will run only on Windows. To get your COBOL programs to run on UNIX/Linux, you must compile the programs using the Micro Focus compiler for the particular version of UNIX/Linux. This will create executables or shared libraries (.so) designed for the UNIX/Linux OS, and for the particular processor chip in the hardware.
Having developed and debugged an application under Visual COBOL on Windows, compile the code on UNIX/Linux using the "Dev Hub" product.