8000 Error running SampleServer_authentication_numeric_confirmation · Issue #412 · nkolban/esp32-snippets · GitHub
[go: up one dir, main page]

Skip to content
Error running SampleServer_authentication_numeric_confirmation #412
Open
@thomasvdwege

Description

@thomasvdwege

I'm trying to run the examples in the security folder (/cpp_utils/tests/BLETests/security), but some of them don't work because of this error:

CXX build/main/app_main_security.o AR build/main/libmain.a LD build/bleTemperature.elf /home/magikarpxl/esp/bleTemperature/build/main/libmain.a(SampleServer_authentication_numeric_confirmation.o):(.literal._ZN10MySecurityD5Ev[MySecurity::~MySecurity()]+0x0): undefined reference to ``vtable for BLESecurityCallbacks' collect2: error: ld returned 1 exit status /home/magikarpxl/esp/esp-idf/make/project.mk:388: recipe for target '/home/magikarpxl/esp/bleTemperature/build/bleTemperature.elf' failed make: *** [/home/magikarpxl/esp/bleTemperature/build/bleTemperature.elf] Error 1

Looks like undefined reference to `vtable for BLESecurityCallbacks' is the error in the log. Does anyone know a fix for this problem?

My app_main_security.cpp looks like this:

/**
 * Main file for running the BLE samples.
 */
extern "C" {
	void app_main(void);
}


// The list of sample entry points.

void SampleClient_Encryption(void);
void SampleServer_Encryption(void);
void SampleClient_authentication_passkey(void);
void SampleServer_authentication_passkey(void);
void SampleClient_authentication_numeric_confirmation(void);
void SampleServer_authentication_numeric_confirmation(void);

void SampleServer_Authorization(void);

//
// Un-comment ONE of the following
//            ---
void app_main(void) {

// SampleClient_Encryption();
// SampleServer_Encryption();
//	SampleClient_authentication_passkey();
// SampleServer_authentication_passkey();
//	SampleClient_authentication_numeric_confirmation();
SampleServer_authentication_numeric_confirmation();
// SampleServer_Authorization();
} // app_main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0