LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

abstract functions in dll

Hello,

 

I have a dll that opens a UDP port to a server and handle all the communication.

I have a function that is triggered once I am getting a data from the UDP port. This function is abstract, I have only definition of it in the dll, but the implementation is outside, in the main application.

 

If I am using a lib instead of a dll, everything is fine. But if I am using a released dll, I can't compile it at all..

 

I am getting an error

error: Undefined symbol '_UDPChatCallback' referenced in "c:\CVI\Drivers\AlTerm\cvibuild.alterm\Debug\alterm.obj".

0 Kudos
Message 1 of 3
(1,970 Views)

Show your code, but most likely this is not an "abstract function" which doesn't exist in standard C at all, but rather a callback function and your application is supposed to implement that function in order for that library to call back into your program and inform you of the state it is in while doing its work.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(1,930 Views)

Hi Kim78,

You could also take a look at this document which covers the causes of this kind of error:  https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KrgSAE&l=en-US

ZK
Technical Support Engineer | NI | Not actually retired but I don't know how to change that
0 Kudos
Message 3 of 3
(1,925 Views)