‎01-28-2018 04:27 AM
Hi All,
I'm developing a dll for external application.
After changing some function's name, I received a linker error, "undefined symbol "_funcNewName" referenced in "pathToObjFile\*.obj" ".
I've rebuild the dll with new function name, copied the new *.lib and *.dll files into external application folder.
Invoked the function using a new name, but still having that issue.
Interesting detail to mention, when I roll back to original name - no linking errors.
Any Ideas?
Thanks for the help 🙂
Solved! Go to Solution.
‎01-29-2018 11:36 AM
Hmmm, that's interesting. I'm not sure why that's happening. Does it happen with other functions or just that one? Can you use the old name, since that works? Is it being referenced anywhere else?
‎01-29-2018 11:40 AM
There are two articles which might be helpful:
Undefined Symbol Error When Importing a DLL in LabWindows/CVI Project
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KrgSAE
Undefined Symbol Link Error in LabWindows/CVI 2012 When Building a Static Library
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8uISAS
‎01-30-2018 12:00 AM
Hi Zofiak,
It happened after I changed function name, or added a new function, then invoked it in my main application.
I think it's some kind of a bug in CVI IDE, because the original project type was EXECUTABLE, I changed it to DLL. It worked fine, from external application, until I added a new function.
So I created a new DLL project, with same sources, types and declarations, and it solved the linking problem.
Thanks for the support anyway 🙂
‎01-30-2018 09:54 AM
I'm glad you found a solution!