LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Snap7 + Ni Labwindows/CVI Errors

i was trying to link the snap 7 DLL file with labwindows and i keep get the same errors any idea please

2021-09-18 (3).png

Tama
0 Kudos
Message 1 of 2
(1,126 Views)

First, you should probably not try to compile the client, server and your own source file in the same project. The main problem is that the Snap7.h file uses a strange way to define its constants. That may work for C++ compilers, I'm not sure, but not for most C compilers.

 

Basically all those const declaration should either be defined as a preprocessor #define or externalized into their own source code file. There is no other sane way to do that to not require some exotic C compiler versions.

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