Skip to content

C++ Example - ParallelProbe Errors (Apple clang) #33

@rajkundu

Description

@rajkundu

Hello! When compiling /Applications/ndiBasicExample.cxx (renamed to .cpp), I encounter the following compilation errors (Apple clang version 14.0.0, x86-64, macOS 12.5):

  1. ndiBasicExample.cpp:30:51: error: variable 'checkDSR' cannot be implicitly captured in a lambda with no capture-default specified
          int errnum = ndiSerialProbe(devName.c_str(),checkDSR);
                                                      ^
    
  2. ndiBasicExample.cpp:47:13: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
          char* devicename = ndiSerialDeviceName(i);
                ^            ~~~~~~~~~~~~~~~~~~~~~~
    
  3. ndiBasicExample.cpp:70:5: error: no matching function for call to 'ParallelProbe'
        ParallelProbe(device,argc > 1 ? argv[1]: 0, checkDSR);
        ^~~~~~~~~~~~~
    ndiBasicExample.cpp:14:6: note: candidate function not viable: requires 2 arguments, but 3 were provided
    bool ParallelProbe(ndicapi*& outDevice, bool checkDSR)
         ^
    

While I see that ParallelProbe is technically only supposed to be compiled (i.e., supported) on MSVC 1700 (v11.0) or higher, wanted to try to adapt and compile it for my Mac.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions