Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Compile LNX (Linked Executable) Code for Xmath

Primary Software: MATRIXx
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I'm trying to compile some of the example files in the xmath\src\ directory. Why do I get the following linking error?

myfun.obj : error LNK2001: unresolved external symbol _AllocateMatrix
myfun.obj : error LNK2001: unresolved external symbol _XmathError
myfun.obj : error LNK2001: unresolved external symbol _XmathMain
myfun.exe : fatal error LNK1120: 3 unresolved externals

Solution:
These example files should be compiled using the makelnx.mk make file. The makelnx.bat file in the xmath\bin\ folder should assist you in the process. To learn more about LNX files view the "External Program Interface" in the MATRIXx help as well the section Building and Calling UCI and LNX in Chapter 9 External Program Interface of the Xmath Users Guide.

Related Links:

Attachments:





Report Date: 12/28/2004
Last Updated: 01/07/2005
Document ID: 3GRBMGNF

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit