Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

error LNK2001: .. extern symbol _ibonl@8 .what to do ?

Hi.

all examplecodes for GPIB can be compiled, but when debugging, following errors occur. (german)

for instance for 4882query

4882query.obj : error LNK2001: Nichtaufgeloestes externes Symbol _ibonl@8
and 9 other errors of the same kind.

what to do ?
0 Kudos
Message 1 of 3
(4,139 Views)
When your source file was compiled no definition for these functions was found within the file so it was marked for external linking. During linking VC++ could not find another source or object file that contained the definition for these functions, that is where the "undefined external symbol" error comes from.

In order to resolve this external symbol you will have to provide the necessary files to the linker by either listing the files in your project file list (right-click on your project in the file view and select "add files to project...") or by going into your project's settings and entering the path to the files for which to link (go to Project >> Settings..., select the Link tab, select Input from the drop-down menu, and put the paths you want
to add in the Additional Library Path field).

The file that you need to link against in a program that uses the NI-488.2 API is gpib-32.obj, don't forget to also #include decl-32.h in your source files for function prototypes and constants used in the API as well.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
Message 2 of 3
(4,139 Views)
I used this to fix most of my errors, but now I am getting another unresolved external symbol below is the error:

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16

Is there another external file I need to include?

In addition, an external dependency has developed basetsd.h
Thanks
0 Kudos
Message 3 of 3
(4,139 Views)