Skip to content

Testing of mesh is giving linker error #1256

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
nemeier opened this issue Dec 19, 2015 · 2 comments
Closed

Testing of mesh is giving linker error #1256

nemeier opened this issue Dec 19, 2015 · 2 comments
Milestone

Comments

@nemeier
Copy link

nemeier commented Dec 19, 2015

I have made the following code:

#include "arduino.h"
extern "C" {
  #include "mesh.h"
}
void ESP8266_enabled_callback()
{
}
void setup() {
    espconn_mesh_enable(ESP8266_enabled_callback, mesh_type::MESH_LOCAL);
}
void loop() {
}

When I build the code I get the following error:

EPS_MESH_TEST.cpp.o:(.text.setup+0x4): undefined reference to espconn_mesh_enable' EPS_MESH_TEST.cpp.o: In functionsetup':
C:\arduino-1.6.5-r2/EPS_MESH_TEST.ino:11: undefined reference to `espconn_mesh_enable'
collect2.exe: error: ld returned 1 exit status
Fejl i kompilering.

What do I or the framework doing wrong?

@nemeier
Copy link
Author

nemeier commented Dec 19, 2015

Btw using lastes version off esp8266/Arduino from github

igrr added a commit that referenced this issue Dec 20, 2015
@igrr igrr added this to the 2.1.0 milestone Dec 20, 2015
@nemeier
Copy link
Author

nemeier commented Dec 20, 2015

Can compile now, thanks

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