This is the repository for Geosoft GX Developer support for GX Language development. Refer to the documentation for more information.
Also see the Geosoft Inc. organization on Github for the other programming language specific repos.
Select a Release and download the source code compressed file. Extract to a folder (e.g. c:\geosoft_code\gxc) on your system. This will contain the following sub-folders:
Folder | Content |
---|---|
examples | source code for all Geosoft GXs |
include | GXC header files that document the GX API |
The compiler and support tools are part of your Geosoft Desktop installation. You will need to add the Geosoft Desktop bin directory to the PATH environment so the compiler programs can be found, and set the environment variable INCLUDE to your gxc\include folder.
To avoid affecting other applications or developer toolkits, it is not recommended to change this in the system-wide operating system settings. Rather only do it within a command-line shell or a reusable batch script.
For example:
set "PATH=%PATH%;C:\Program Files\Geosoft\Desktop Applications 9\bin"
set "INCLUDE=c:\geosoft_code\gxc\include"
NOTE: The location of the quotes is important. Technically the quotes are only necessary if there are spaces within them to ensure the set command sees the whole environment assignment as a single parameter. It is safer though to just assume they are always needed, but to make sure there is just one quote right in front of the environment name being set, and one right at the end.
A GX will have a .gxc source file and an optional .grc resorce file. There may also be .hlp files that are used by the resource file. Compiling is a 2-step process. For this example navigate to the gxc\examples\agggrid folder:
grc.exe agggrid
gxc.exe agggrid
This will create the GX file: aggrid.gx.
Any source code found here are released under the BSD 2-clause license. Core functionality exposed by the GX API may have additional license implications. For more information consult the License page in the GX Developer Wiki