Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

Chapter 4 External Subroutines

MPW Compiler

The makefile for a calling CIN is the same as described in the Steps for Creating a CIN section of Chapter 1, CIN Overview, except you use the optional subrNames directive to identify the subroutines that the CIN references. Specifically, if your code calls two external subroutines, A and B, you need to have the following line in the makefile code:

subrNames = A B

Microsoft Windows 3.1, Windows 95, and Windows

NT

The makefile for a calling CIN is the same as described in the Steps for Creating a CIN section of Chapter 1, CIN Overview, except you use the optional subrNames directive to identify the subroutines that the CIN references. Specifically, if your code calls two external subroutines, A and B, you need to have the following line in the code makefile, prior to the !include statement.

subrNames = A B

Solaris 1.x, Solaris 2.x, and HP-UX

Unbundled Sun C Compiler and HP-UX C/ANSI C Compiler

The lvmkmf command for a calling CIN is the same as described in the Steps for Creating a CIN section of Chapter 1, CIN Overview, except you use the optional -ext option with the name of a file that lists the names of the subroutines called by the CIN, one name per line. The makefile that lvmkmf creates uses this file to append linkage information to the CIN object file.

For example, if your code calls two external subroutines, A and B, you create a new text file with the name A on the first line and B on the second. If the list of subroutines is in a file called subrs, and you want to call the calling CIN lookup, you can use the following command to create a makefile.

lvmkmf -ext subrs lookup

This command creates a makefile that you can use to create the CIN.

LabVIEW Code Interface Reference Manual

4-6

© National Instruments Corporation

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]