versatica / mediasoup

Cutting Edge WebRTC Video Conferencing
https://mediasoup.org
ISC License
6.27k stars 1.13k forks source link

#define MS_LOG_DEV_LEVEL 3, build error #1361

Closed adcen0107 closed 7 months ago

adcen0107 commented 7 months ago

Your environment Operating system: ubuntu22.04 Node version:v18.19.1 npm version:10.2.4 gcc/clang version:gcc version 11.4.0 mediasoup version: 3.13.24 mediasoup-client version: Issue description at Logger.hpp set #define MS_LOG_DEV_LEVEL 3 then cd worker make

In file included from ../../../src/RTC/SctpAssociation.cpp:6: ../../../src/RTC/SctpAssociation.cpp: In member function ‘void RTC::SctpAssociation::SendSctpMessage(RTC::DataConsumer, const uint8_t, size_t, uint32_t, RTC::SctpAssociation::onQueuedCallback*)’: ../../../src/RTC/SctpAssociation.cpp:463:35: error: expected ‘)’ before ‘sctp’ 463 | sctp, | ^~~~ ../../../include/Logger.hpp:298:122: note: in definition of macro ‘MS_DEBUG_DEV’ 298 | const int loggerWritten = std::snprintf(Logger::buffer, Logger::BufferSize, "D" _MS_LOG_STR_DESC desc, _MS_LOG_ARG, ##VA_ARGS__); \ | ^~~~ ../../../include/Logger.hpp:298:64: note: to match this ‘(’ 298 | const int loggerWritten = std::snprintf(Logger::buffer, Logger::BufferSize, "D" _MS_LOG_STR_DESC desc, _MS_LOG_ARG, ##VA_ARGS__); \ | ^ ../../../src/RTC/SctpAssociation.cpp:462:33: note: in expansion of macro ‘MS_DEBUG_DEV’ 462 | MS_DEBUG_DEV(

ibc commented 7 months ago

Thanks, fixed.