Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with compilation of exampl 4882MFC

"i tried to compile your exampl file 4882MFC

and I have following error:
what can it be??
--------------------Configuration: 4882MFC - Win32 Release--------------------
Compiling...
4882MFCDlg.cpp
Linking...
4882MFCDlg.obj : error LNK2001: unresolved external symbol _ibcntl
4882MFCDlg.obj : error LNK2001: unresolved external symbol _ReadStatusByte@12
4882MFCDlg.obj : error LNK2001: unresolved external symbol _WaitSRQ@8
4882MFCDlg.obj : error LNK2001: unresolved external symbol _DevClear@8
4882MFCDlg.obj : error LNK2001: unresolved external symbol _ibonl@8
4882MFCDlg.obj : error LNK2001: unresolved external symbol _Receive@20
4882MFCDlg.obj : error LNK2001: unresolved external symbol _Send@20
4882MFCDlg.obj : erro
r LNK2001: unresolved external symbol _ibcnt
4882MFCDlg.obj : error LNK2001: unresolved external symbol _FindLstn@16
4882MFCDlg.obj : error LNK2001: unresolved external symbol _ibsta
4882MFCDlg.obj : error LNK2001: unresolved external symbol _SendIFC@4
4882MFCDlg.obj : error LNK2001: unresolved external symbol _iberr
.\Release/4882MFC.exe : fatal error LNK1120: 12 unresolved externals
Error executing link.exe.


4882MFC.exe - 13 error(s), 0 warning(s)


what can it be??"
0 Kudos
Message 1 of 7
(3,428 Views)
Hello,
It looks like you are missing the GPIB library in your project. I don't remember the name of the file, and I cannot find the example you are using, but the readme file of the example should indicate which library you need to use. Make sure you include the .lib file in your project for your dll.

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 2 of 7
(3,428 Views)
Which example are you talking about? There is not an example called 4882MFC that ships with Measurement Studio for Visual C++. Anyway, if you're using the Measurement Studio for Visual C++ libraries, this error would be because you're not linking to Ni4882.lib (Ni4882D.lib for debug, or Ni488270.lib for VC.NET release, or Ni488270D.lib for VC.NET debug). If you're not using the Measurement Studio for Visual C++ libraries, I think this error would be because you're not linking to Gpib-32.obj. Please double-check the libraries that you're linking to and see if the appropriate library is missing.

- Elton
0 Kudos
Message 3 of 7
(3,428 Views)
How can I link the library????
How??? what and where I should to add?

what in case in Measurement studio??
and what i case just VC++???
0 Kudos
Message 4 of 7
(3,428 Views)
the exampl is here:

NI Developer Zone > Development Library > Instrument Connectivity > GPIB > Programming > Language Interfaces

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3ED3C56A4E034080020E74861&p_node=DZ52353&p_source=external

how can I link the library???
in both casess Measurement studio and just Visula c++?
0 Kudos
Message 5 of 7
(3,428 Views)
You need to link to the GPIB-32.obj file. If you are using Visual C++ 6, this can be accomplished by going to your project settings (menu Project>>Settings), selecting "All configurations" in the "Settings for:" drop-down box, selecting the "Link" tab, and adding the full path (including the file name) of the GPIB-32.OBJ file on your system to the "Object/Library modules" box.

If you have Measurement Studio, look for the NI4882 component in the table of contents of the online Measurement Studio Reference file for information on an alternate way of programming your 488.2 interface using C++ classes.

Tony
NI - Measurement Studio
0 Kudos
Message 6 of 7
(3,428 Views)
after added GRIB.OBJ
i have next error:

LINK : fatal error LNK1181: cannot open input file "C:\MyDoc\VSCSP3\New.obj"
Error executing link.exe.
4882MFC.exe - 1 error(s), 0 warning(s)
0 Kudos
Message 7 of 7
(3,428 Views)