Sie sind auf Seite 1von 2

Version 9.

0 Notes

Installed: mingw-w64 compiler package

Geosoft Viewer 9.0 (for testing)*
GX Developer 9.0

*Note: This will remove any Geosoft 8.* version files from the computer, so park
your license first.

Geosoft grc and gxc compilers in

C:\Program Files\Geosoft\GX Developer (x64)\gx\bin
added to PATH in mingw-w64.bat

Created a working directory C:\User64\OM90 and copied OM80 GX files there


Makelib mods:

OMVERS = 9.0


GEOGX_IMP = $(GLIBDIR)/geogx_utf8.lib Note: filenames are

consistent in 9.0
GEOGX_DLL = geogx_utf8.dll
GEODIST_IMP = $(GLIBDIR)/geodist.lib
GEODIST_DLL = geodist.dll

Copied to working directory:

All lib files from C:\Program Files\Geosoft\GX Developer (x64)\cpp\lib
All geogx* and geodist dll files from C:\Program Files\Geosoft\GX Developer

mingw-w64 uses the 32-bit version of make, and calls it mingw32-make.exe

I copied and renamed it to make.exe in the mingw64\bin directory
I also renamed my old C:\MinGW directory to C:\MinGW32 to prevent the PATH from
accessing it

Copy Makelibs to Makefile and run make to create libGEODIST9.0.a and libGEOGX9.0.a


wfuncs.c and wrappers.h modified to replace double underscores by single


include files from C:\Program Files\Geosoft\GX Developer (x64)\cpp\include

copied to an include directory under the working directory

Makefile mods in subdirectories (e.g. \usgs_addgrd):

OMVERS = 9.0

LIBDIR = -L ..

INCDIR = ../include

FC = gfortran
replace g77 by $(FC)

comment out the cp $(TARGET... lines

$(FC) -c $*.f -o $*.o

Run make to create the new dll; copy it to C:\Program Files\Geosoft\Desktop

Applications 9\bin

Run grc and grx to create the new gx; copy it to C:\Program Files\Geosoft\Desktop
Applications 9\gx

Menufiles USGS.omn and USGSV.omn must be moved to

C:\Program Files\Geosoft\Desktop Applications 9\user\omn

As needed, replace #include <all32.gxh> by #include <all.gxh> in gxc files

Compile Errors
usgs_gridprox.gxc unable to find the "iGetLength_DB" function

The USGS graphics programs have not been recompiled to 64-bit, so they cannot go
under Program Files.
Instead move the following files to C:\Program Files (x86)\Geosoft\Desktop
Applications 9\bin


and move the lib1 directory to C:\Program Files (x86)\Geosoft\Desktop Applications



then add C:\Program Files (x86)\Geosoft\Desktop Applications 9\bin to the system


Control Panel
Advanced System Settings
Environment Variables