Hello All,
I am using a CVI program with an external DLL file.
My program is designed to be able to load a specific DLL file from a collection of possible files depending on the required task.
I am making a common variable "result" in each DLL fille.
In my CVI program it is defined as int DLLIMPORT result;
In my DLL I have the variable defined as int DLLEXPORT result;
When I use the DLLIMPORT function for my program to get the variable "result" from the DLL, I get error:Undefined symbol "_imp...
If I include the library for one of my DLL's in my CVI program, this error goes away, of coures.
But because I am using multiple DLL's, one at a time, I do not want to link any librarys to a specific DLL.
I haven't had any issues using my DLL's with DLLEXPORT, but DLLIMPORT is giving me this linking issue when I build it.
What can I do to define my DLLIMPORT variable so I can bypass linking a library to my CVI program?