Skip to content

2.1.0 not compiling on nRF devices #802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mr258876 opened this issue Dec 15, 2024 · 1 comment
Closed

2.1.0 not compiling on nRF devices #802

mr258876 opened this issue Dec 15, 2024 · 1 comment

Comments

@mr258876
Copy link
Contributor

Hello, I'm using a nRF51802 with n-able-Arduino core, and things just got wrong after installed 2.1.0 #800. I've read the migration guide and I think it's probably not related to the new functions.

Here's the compiling log:

  • When NimBLE Role option set to Peripheral:
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp: In destructor 'NimBLEServer::~NimBLEServer()':
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp:73:9: error: 'm_pClient' was not declared in this scope; did you mean 'BLEClient'?
   73 |     if (m_pClient != nullptr) {
      |         ^~~~~~~~~
      |         BLEClient
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp:74:16: error: type '<type error>' argument given to 'delete', expected pointer
   74 |         delete m_pClient;
      |                ^~~~~~~~~
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp: In static member function 'static int NimBLEServer::handleGapEvent(ble_gap_event*, void*)':
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp:402:26: error: 'class NimBLEServer' has no member named 'm_pClient'
  402 |             if (pServer->m_pClient && pServer->m_pClient->m_connHandle == event->disconnect.conn.conn_handle) {
      |                          ^~~~~~~~~
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp:402:48: error: 'class NimBLEServer' has no member named 'm_pClient'
  402 |             if (pServer->m_pClient && pServer->m_pClient->m_connHandle == event->disconnect.conn.conn_handle) {
      |                                                ^~~~~~~~~
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src\NimBLEServer.cpp:404:26: error: 'class NimBLEServer' has no member named 'm_pClient'
  404 |                 pServer->m_pClient->m_connHandle = BLE_HS_CONN_HANDLE_NONE;
      |                          ^~~~~~~~~
  • When NimBLE Role option set to 'All`:
c:/users/mr258876/appdata/local/arduino15/packages/h2zero/tools/gcc-arm-none-eabi/9.3.1-1/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Mr258876\AppData\Local\arduino\sketches\52D05B75139C3E829C87BFCC345E421C\libraries\NimBLE-Arduino\objs.a(NimBLEDevice.cpp.o): in function `NimBLEDevice::deinit(bool)':
d:\ProgrammingStuff\Arduino\libraries\NimBLE-Arduino\src/NimBLEDevice.cpp:916: undefined reference to `nimble_port_stop'
collect2.exe: error: ld returned 1 exit status

I have made a temporary fix for both problem #801.

Again, thanks for all your hardwork!

@h2zero
Copy link
Owner

h2zero commented Dec 16, 2024

Going to close this as it has been resolved via #801 being merged.

@h2zero h2zero closed this as completed Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants