JadedCtrl / Cardie

Renamed to https://github.com/JadedCtrl/Chat-O-Matic
https://github.com/JadedCtrl/Chat-O-Matic
Other
2 stars 0 forks source link

purple protocol fails to build #32

Closed Begasus closed 3 years ago

Begasus commented 3 years ago

As promised, the error when trying to enable the purple protocol:

mkdepend  -Iobjects.x86-cc8-release/  -Iprotocols/purple/ -p .cpp:objects.x86-cc8-release/%n.o -m -f "objects.x86-cc8-release/PurpleProtocol.d" protocols/purple/PurpleProtocol.cpp
mkdir -p objects.x86-cc8-release; \
mkdepend  -Iobjects.x86-cc8-release/  -Iprotocols/purple/ -p .cpp:objects.x86-cc8-release/%n.o -m -f "objects.x86-cc8-release/PurpleApp.d" protocols/purple/PurpleApp.cpp
g++ -c protocols/purple/PurpleApp.cpp -iquote./  -iquoteobjects.x86-cc8-release/  -iquoteprotocols/purple/  -isystemlibs/  -isystemapplication/  -isystem/boot/system/develop/headers/x86/libpurple  -O3   -DVERSION="\"0.0.2\""  -DBUILD_DATE="\"2021-07-02  -D14:34\"" -I/packages/glib2_x86-2.62.0-3/.self/develop/headers/x86/glib-2.0 -I/packages/glib2_x86-2.62.0-3/.self/develop/lib/x86/glib-2.0/include -I/packages/libpcre_x86-8.44-1/.self/develop/headers/x86 -o "objects.x86-cc8-release/PurpleApp.o"
protocols/purple/PurpleApp.cpp: In member function 'virtual void PurpleApp::MessageReceived(BMessage*)':
protocols/purple/PurpleApp.cpp:83:43: error: call of overloaded 'FindInt32(const char [6], int)' is ambiguous
    int32 index = msg->FindInt32("index", 0);
                                           ^
In file included from /boot/system/develop/headers/os/support/Archivable.h:10,
                 from /boot/system/develop/headers/os/app/Handler.h:12,
                 from /boot/system/develop/headers/os/app/Looper.h:13,
                 from /boot/system/develop/headers/os/app/Application.h:11,
                 from protocols/purple/PurpleApp.h:26,
                 from protocols/purple/PurpleApp.cpp:21:
/boot/system/develop/headers/os/app/Message.h:222:15: note: candidate: 'status_t BMessage::FindInt32(const char*, int32*) const'
    status_t   FindInt32(const char* name, int32* value) const;
               ^~~~~~~~~
/boot/system/develop/headers/os/app/Message.h:409:13: note: candidate: 'int32 BMessage::FindInt32(const char*, int32) const'
    int32    FindInt32(const char* name, int32 n = 0) const;
             ^~~~~~~~~
/boot/system/develop//etc/makefile-engine:297: recipe for target 'objects.x86-cc8-release/PurpleApp.o' failed
make[2]: *** [objects.x86-cc8-release/PurpleApp.o] Error 1
make[2]: Leaving directory '/Opslag/Cardie'
protocols/Makefile:7: recipe for target 'purple' failed
make[1]: *** [purple] Error 2
make[1]: Leaving directory '/Opslag/Cardie'
Makefile:7: recipe for target 'protocols' failed
make: *** [protocols] Error 2
JadedCtrl commented 3 years ago

Whoops! Just got that with 58e3d99.

Begasus commented 3 years ago

Thanks! It worked ok for the build! :+1: