ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
06-07-2006
05:20 AM
- last edited on
05-17-2024
09:01 AM
by
Content Cleaner
06-08-2006 04:24 PM
Hi David,
You did the correct thing by adding the NIDAQmx.lib file to your project. Also, the NIDAQmx.h file is the same.
Regards,
Hal L.
12-03-2010 12:27 PM
I have a similar problem in VS 2008. I can compile the example code (VC_ContFreq_IntClk_SCXI1126) no problem from Visual Studio 2008.
However, when I create my own project in visual studio with the same #includes i get the same errors:
Compiling...
DTRTestNov2010.c
Linking...
DTRTestNov2010.obj: error LNK2019: unresoloved external symbol _DAQmxClearTask@4 reference in function _main
DTRTestNov2010.obj: error LNK2019: unresoloved external symbol _DAQmxStopTask@4 reference in function _main
and so on... for all other function calls I made.
i am not a pro at c-programming. Am I supposed to setup a 'linker' somehow?
Thanks!
Sean
Here is my c-code (which operates in matlab typically, but I think is spawning a memory leak, so i'd like to test it in native C)
12-03-2010
05:30 PM
- last edited on
05-17-2024
09:02 AM
by
Content Cleaner
Hi Sean,
Yes, you must tell the linker where nidaqmx.lib is located. Here are a couple of KBs explaining how to do this:
When Compiling a DAQmx ANSI C Example in Visual C++ I Receive Link Errors
Location of ANSI C NI-DAQmx Shipping Examples and DAQmx Library File for Windows
Brad