Skip to content

Undefined symbols for architecture x86_64: "ds::Device::create(ds::DeviceType, ds::Option)" #4

@wangyangwang

Description

@wangyangwang

just trying to build a simple HelloWorld app using depth sensor. since i cannot find a documentation or sample anywhere, I just started with some simple code:

#include "DepthSensor.h"

ds::DeviceRef mDevice;

void depthApp::setup()
{
    ds::DeviceType type = ds::DeviceType(0);
    ds::Option option;
    option.enableDepth = true;
    option.enableInfrared = false;
    
    mDevice = ds::Device::create(type, option);
// mDevice = ds::Device::create(type);

}

this line mDevice = ds::Device::create(type, option); gives me this error:

Undefined symbols for architecture x86_64:
"ds::Device::create(ds::DeviceType, ds::Option)", referenced from:
depthApp::setup() in depthApp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The project was freshly built using Tinderbox, the code I posted above is really the only thing I added.

I am not sure if this is caused by the Block or my build settings or my misuse of the library. Since I am relatively new to c++, I apologize if this is not an issue to this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions