Assuming that the NAG Data Mining Components have been installed in the default directory c:\Program Files\Numerical Algorithms Group\Data Mining, then you may compile and link a driver program named driver.c with the NAG Data Mining Components in the following manner:
Using Microsoft Visual C++
cl /I & "c:\Program Files\Numerical Algorithms Group\Data Mining\Include" driver.c & "c:\Program Files\Numerical Algorithms Group\Data Mining\Library\nag_dmc.lib" & user32.libwhere nag_dmc.lib is the NAG Data Mining Components import library and user32.lib is the user32 import library that comes with Visual C++. Note that the line is continued by escaping the newline character with '&'.
The installation procedure for the NAG Data Mining Components attempts to add the location of the include files and the import library to the Microsoft compiler environment variables INCLUDE and LIB, respectively. If this has been achieved successfully then you may link with the NAG Data Mining Components as follows:
cl driver.c nag_dmc.lib user32.lib
If you are using Developer Studio, after establishing a workspace you should make the system aware of the NAG Data Mining Components by clicking on Project, then Settings, then Link and entering the library under Object/library modules. The installation procedure attempts to make Developer Studio aware of the location of the NAG Data Mining Components. You can confirm that it has been successful by examining the Directories pane when Tools/Options/Directories/Show directories for/Libraries has been selected. If the installation had difficulty, perhaps because several versions of Developer Studio were recorded in the registry, then you can set this facility manually in the Directories pane. Otherwise you will have to specify the full path name of the libraries in Object/library modules.
Example File | Additional File Needed |
---|---|
basic_logistic_exf.c | iris_sp.c |
dt_exf.c | df_iris.c |
hclust_exf.c | iris.c |
kmeans_exf.c | iris.c |
knnc_exf.c | df_iris.c |
knnp_exf.c | df_iris.c |
logistic_exf.c | iris_sp.c |
pca_exf.c | iris.c |
regr_exf.c | iris_sp.c |
Issue the compilation command
cl iris.c pca_exf.c nag_dmc.lib user32.lib
The exception to this is the ODBC example contained in file odbc_ex.c. This example requires that some ODBC software is installed on your system as well as the NAG Data Mining Components. If you have not already done so, install Microsoft Data Access Components Version 2.6 or later on to your system. Once installed the example file odbc_ex.c can be compiled in the way as other NAG Data Mining Components examples, e.g.
cl odbc_ex.c nag_dmc user32.lib
The NAG Response Centres are available for general enquiries from all users and also for technical queries from sites with an annually licensed product or support service.
The Response Centres are open during office hours, but contact is possible by fax, email and phone (answering machine) at all times.
When contacting a Response Centre please quote your NAG site reference and NAG product code (in this case DRDLL10DA).
The NAG websites are an information service providing items of interest to users and prospective users of NAG products and services. The information is reviewed and updated regularly and includes implementation availability, descriptions of products, downloadable software, product documentation and technical reports. The NAG websites can be accessed at
or
http://www.nag.com/ (in North America)
or
http://www.nag-j.co.jp/ (in Japan)
NAG Ltd Tel: +44 (0)1865 511245 Fax: +44 (0)1865 310139 NAG Ltd Response Centre email: support@nag.co.uk Tel: +44 (0)1865 311744 Fax: +44 (0)1865 310139 NAG Inc Tel: +1 630 971 2337 Fax: +1 630 971 2706 NAG Inc Response Center email: infodesk@nag.com Tel: +1 630 971 2345 Fax: +1 630 971 2706 Nihon NAG KK Tel: +81 (0)3 5542 6311 Fax: +81 (0)3 5542 6312 email: help@nag-j.co.jp [NP3628/UN]