Project Link Error Undefined Symbol Cvi
LabWindows/CVI Development Systems>>LabWindows/CVI Full Development System Primary Software Version: 2009 SP1 Primary Software Fixed Version: N/A Secondary Software: N/A Problem: I'm developing a DLL in LabWindows/CVI 2012. After creating a labwindows cvi "undefined symbol" Dynamic Link Library project in Debug configuration, I set the Build»Target Type to undefined symbol math Static Library. When I try to build my project after changing the Target Type, LabWindows/CVI throws several link errors: Undefined symbol'__CompiledDebuggingLevel' referenced in "C:\Program Files\National Instruments\CVI2012\bin\msvc\cvistart.lib". How can I resolve these errors? Solution: The link error occurs because you switched the project's Target Type from being a Dynamic Link Library in Debug configuration to being a Static Library. Static libraries cannot be built in a Debug configuration, so LabWindows/CVI tries to change the configuration to Release. However, this change creates an inconsistent configuration state, which causes the Static Library to build with Debug symbols that it does not define. You can fix this erroneous configuration state by reselecting Release as the Target Configuration. Click Build»Configuration»Release (see Figure 2). The Release option will already be checked, but you should select it anyway. Reselecting Release will create a stable configuration, and your project will build without the Debug symbols. Note: This error, reported as Known Issue 372694, has been fixed as of LabWindows/CVI 2012 SP1. See LabWindows™/CVI™ 2012 SP1 Bug Fix Information for more details. For other possible causes of link errors with undefined symbols, see the related links below. Related Links: White Paper: LabWindows™/CVI™ 2012 SP1 Bug Fix Information White Paper: LabWindows™/CVI™ Known Issues KnowledgeBase 6CB982QW: Why Do I Receive Undefined Symbol Errors When Building a LabWindows/CVI Project that Uses GPIB/GPIB 488.2 or VXI Libraries? KnowledgeBase 3W9DPTG2: Syntax Error or Link Error When Calling a DLL in LabWindows/CVI KnowledgeBase 24BDGI1B: Why Do I Get an 'Undefined Symbol' Error When I Try To Build a Project in CVI Using Code Interface Node (CIN) Memory Manager Functions? KnowledgeBase 3MKIDTMY: Why Do I Get "undefined symbol" Errors With DAQmx Base C Examples in LabWindows™/CVI? KnowledgeBase 1AACMP6Q: Getting Link Error, Undefined Symbol nidaqerr Error Handler Refence "filename.c" Attachments:
Software: LabWindows/CVI Development Systems>>Full Development System Primary Software Version: 5.0.1 Primary Software Fixed Version: N/A Secondary Software: LabWindows/CVI Development Systems>>Base Package Problem: Why do I receive an "Undefined Symbol" error when trying to build a stand-alone application in CVI 5.0.1? Solution: Selecting Build » Build Release Executable may report the message "undefined symbol" project link error. http://digital.ni.com/public.nsf/allkb/BF8084DB74021EE986257AB200001737 Go to Build » Target Settings and make sure that "Instrument Driver Support Only" is not checked. If you check this box, your project does not link to the entire set of LabWindows/CVI libraries but to a smaller set of functions. Stand-alone executables and DLLs you http://digital.ni.com/public.nsf/allkb/8890718DE5A63F5C862568D600625021 create when the Instrument Driver Support Only command is enabled do not use the LabWindows/CVI Run-time Engine DLL, cvirte.dll. Instead, they use instrsup.dll, which is much smaller. This command is particularly useful for creating instrument driver DLLs. It allows other applications to use instrument driver DLLs without having to load the large LabWindows/CVI Run-time Engine DLL. See the LabWindows/CVI User Manual for more information. Related Links: LabWindows/CVI User Manual Attachments: Report Date: 05/05/2000 Last Updated: 04/06/2009 Document ID: 1X4BRTBD Your Feedback! Poor|Excellent Yes No Document Quality? Answered Your Question? 1 2 3 4 5 Document needs work? Please tell us why. Please Contact NI for all product and support inquiries. My Profile | RSS | Privacy | Legal | Contact NI © 2014 National Instruments Corporation. All rights reserved. |
ForumsCategoryBoardDocumentsUsers turn on suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Did you http://forums.ni.com/t5/LabWindows-CVI/project-link-error/td-p/857118 mean: Reply Topic Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page All Forum Topics Previous Topic Next Topic project link error Solved! Go to Solution project link error Tony1979 Member 02-20-2009 05:08 AM Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report to a undefined symbol Moderator hi NI , i have a problem with CVI . i have a program that run since to weeks ago now not anymore and it gaves me this error of link projektundefined symbol '_Ini_PutInt@16' referenced in "testbench.c"undefined symbol '_Ini_PutDouble@20' referenced in "testbench.c"undefined symbol '_Ini_GetStringIntoBuffer@20' referenced in "testbench.c"undefined symbol '_Ini_GetInt@16' referenced in "testbench.c"undefined symbol '_Ini_GetDouble@16' referenced in "testbench.c"undefined symbol '_Ini_New@4' referenced in "testbench.c"undefined symbol '_Ini_Dispose@4' referenced in "testbench.c"undefined symbol project link error '_Ini_WriteToFile@8' referenced in "testbench.c"undefined symbol '_Ini_ReadFromFile@8' referenced in "testbench.c" i dont know why form one day to another it doesnt function anymorei have done other programs that run in this time and configured the usb 6008 for data acquisition with MAX but dont know whythanks Elton Solved! Go to Solution. 0 Kudos Message 1 of 3 (1,671 Views) Reply 0 Kudos Solution Accepted by topic author Tony1979 08-27-2015 06:09 PM Re: project link error RobertoBozzolo Proven Zealot 02-20-2009 08:47 AM Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report to a Moderator Hi Tony,this kind of errors can be seen when a required library is not included in the project. In your case, you must add to the project the IniFile instrument (located in