Skip to content
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

Undefined reference to `AsyncMqttClientInternals:: #290

Open
jonasfluegge opened this issue Dec 22, 2022 · 0 comments
Open

Undefined reference to `AsyncMqttClientInternals:: #290

jonasfluegge opened this issue Dec 22, 2022 · 0 comments

Comments

@jonasfluegge
Copy link

Hey, i always get these errors, when i try to compile my code with using this async-mqtt-client-library:

.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient12_handleQueueEv+0x0): undefined reference to AsyncMqttClientInternals::OutPacket::packetType() const'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient12_handleQueueEv+0x4): undefined reference to AsyncMqttClientInternals::OutPacket::released() const' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient9_onPubRecEt+0x0): undefined reference to AsyncMqttClientInternals::PubAckOutPacket::PubAckOutPacket(AsyncMqttClientInternals::PendingAck)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient9_onPubRecEt+0x4): undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient9_onPubRecEt+0x8): undefined reference to AsyncMqttClientInternals::OutPacket::release()'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient10_onConnectEv+0x0): undefined reference to AsyncMqttClientInternals::ConnectOutPacket::ConnectOutPacket(bool, char const*, char const*, char const*, bool, unsigned char, char const*, unsigned short, unsigned short, char const*)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient11_clearQueueEb+0x0): undefined reference to AsyncMqttClientInternals::OutPacket::qos() const'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient11_clearQueueEb+0x4): undefined reference to AsyncMqttClientInternals::PublishOutPacket::setDup()' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient9_sendPingEv+0x0): undefined reference to AsyncMqttClientInternals::PingReqOutPacket::PingReqOutPacket()'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient10disconnectEb+0x0): undefined reference to AsyncMqttClientInternals::DisconnOutPacket::DisconnOutPacket()' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient9subscribeEPKch+0x0): undefined reference to AsyncMqttClientInternals::SubscribeOutPacket::SubscribeOutPacket(char const*, unsigned char)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7publishEPKchbS1_jbt+0x8): undefined reference to AsyncMqttClientInternals::PublishOutPacket::PublishOutPacket(char const*, unsigned char, bool, char const*, unsigned int)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x54): undefined reference to AsyncMqttClientInternals::ConnAckPacket::ConnAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (bool, unsigned char)>)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x58): undefined reference to AsyncMqttClientInternals::PingRespPacket::PingRespPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void ()>)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x5c): undefined reference to AsyncMqttClientInternals::SubAckPacket::SubAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short, char)>)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x60): undefined reference to AsyncMqttClientInternals::UnsubAckPacket::UnsubAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x64): undefined reference to AsyncMqttClientInternals::PublishPacket::PublishPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (char*, char*, unsigned char, bool, bool, unsigned int, unsigned int, unsigned int, unsigned short)>, std::function<void (unsigned short, unsigned char)>)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x68): undefined reference to AsyncMqttClientInternals::PubRelPacket::PubRelPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x6c): undefined reference to AsyncMqttClientInternals::PubAckPacket::PubAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x70): undefined reference to AsyncMqttClientInternals::PubRecPacket::PubRecPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o:(.literal._ZN15AsyncMqttClient7_onDataEPcj+0x74): undefined reference to AsyncMqttClientInternals::PubCompPacket::PubCompPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_handleQueue()': C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetType() const'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::released() const' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onPubRec(unsigned short)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubAckOutPacket::PubAckOutPacket(AsyncMqttClientInternals::PendingAck)' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::release()' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onConnect()':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::ConnectOutPacket::ConnectOutPacket(bool, char const*, char const*, char const*, bool, unsigned char, char const*, unsigned short, unsigned short, char const*)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_clearQueue(bool)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::qos() const' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetType() const'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetType() const' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PublishOutPacket::setDup()'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::qos() const' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_sendPing()':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PingReqOutPacket::PingReqOutPacket()' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::disconnect(bool)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::DisconnOutPacket::DisconnOutPacket()' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::subscribe(char const*, unsigned char)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::SubscribeOutPacket::SubscribeOutPacket(char const*, unsigned char)' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::publish(char const*, unsigned char, bool, char const*, unsigned int, bool, unsigned short)': C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PublishOutPacket::PublishOutPacket(char const*, unsigned char, bool, char const*, unsigned int)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onData(char*, unsigned int)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::ConnAckPacket::ConnAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (bool, unsigned char)>)' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PingRespPacket::PingRespPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void ()>)'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::SubAckPacket::SubAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short, char)>)' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::UnsubAckPacket::UnsubAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PublishPacket::PublishPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (char*, char*, unsigned char, bool, bool, unsigned int, unsigned int, unsigned int, unsigned short)>, std::function<void (unsigned short, unsigned char)>)' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubRelPacket::PubRelPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubAckPacket::PubAckPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubRecPacket::PubRecPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubCompPacket::PubCompPacket(AsyncMqttClientInternals::ParsingInformation*, std::function<void (unsigned short)>)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onSubAck(unsigned short, char)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::release()'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onUnsubAck(unsigned short)': C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::release()' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onPubComp(unsigned short)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::release()'
.\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onPublish(unsigned short, unsigned char)': C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubAckOutPacket::PubAckOutPacket(AsyncMqttClientInternals::PendingAck)'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::PubAckOutPacket::PubAckOutPacket(AsyncMqttClientInternals::PendingAck)' .\libraries\async_mqtt_client\AsyncMqttClient.cpp.o: In function AsyncMqttClient::_onPubRel(unsigned short)':
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::packetId() const' C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to AsyncMqttClientInternals::OutPacket::release()'
C:\Users\JFluegge\sloeber\arduinoPlugin\libraries\async_mqtt_client\src/AsyncMqttClient.cpp:125: undefined reference to `AsyncMqttClientInternals::PubAckOutPacket::PubAckOutPacket(AsyncMqttClientInternals::PendingAck)'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:86: DHT22MQTTESP32.elf] Error 1
"C:/Users/JFluegge/sloeber/arduinoPlugin/tools/make/make all" terminated with exit code 2. Build might be incomplete.

11:40:05 Build Failed. 59 errors, 0 warnings. (took 12s.53ms)

`

I am using the sample code in the /example/esp32 directory, my IDE is sloeber on Windows.

Thanks for your help!

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

1 participant