LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

namespace syntax error

I wonder if Labwindows support namespace. I find that it doesn't seem to be the keyword in labwindows.
I have a .h file, just like the following style:
 
namespace CL_DEF
{
  ......
}
 
however, when compile such .h header, there seems to be syntax error about the statement:
syntax error, found 'identifier' expect ';'
 
I wonder who can help me out. Thanks a lot.
0 Kudos
Message 1 of 3
(3,388 Views)

Namespace is a C++ notation and  Lab Windows CVI uses a C compiler, it would be like trying to use classes in C.  If you want to group information I suggest using structs.

Garth

Message 2 of 3
(3,382 Views)
Thanks a lot for your quick answer. You really help me a lot.
0 Kudos
Message 3 of 3
(3,359 Views)