JadedCtrl / Chat-O-Matic

A multi-protocol chat program for Haiku
Other
15 stars 3 forks source link

Build failure on 32bit #2

Closed Begasus closed 1 month ago

Begasus commented 3 years ago
g++ -c application/views/ConversationListView.cpp -iquote./  -iquote./  -iquoteapplication/  -iquoteapplication/preferences/  -iquoteapplication/views/  -iquoteapplication/windows/  -iquotedata/icons/misc/  -iquotedata/icons/replicant/  -iquotedata/icons/status/  -iquotedata/misc/  -iquoteobjects.x86-cc8-release/  -isystemlibs/  -O3   -DVERSION="\"0.0.2\""  -DBUILD_DATE="\"2021-08-22  -D15:27\""  -DDEBUG_ENABLED=false  -o "objects.x86-cc8-release/ConversationListView.o"
g++ -c application/views/ConversationView.cpp -iquote./  -iquote./  -iquoteapplication/  -iquoteapplication/preferences/  -iquoteapplication/views/  -iquoteapplication/windows/  -iquotedata/icons/misc/  -iquotedata/icons/replicant/  -iquotedata/icons/status/  -iquotedata/misc/  -iquoteobjects.x86-cc8-release/  -isystemlibs/  -O3   -DVERSION="\"0.0.2\""  -DBUILD_DATE="\"2021-08-22  -D15:27\""  -DDEBUG_ENABLED=false  -o "objects.x86-cc8-release/ConversationView.o"
application/views/ConversationView.cpp: In member function 'void ConversationView::GetWeights(float*, float*, float*, float*)':
application/views/ConversationView.cpp:312:40: error: call of overloaded 'ItemWeight(int)' is ambiguous
  *horizChat = fHorizSplit->ItemWeight(0);
                                        ^
In file included from /boot/system/develop/headers/os/interface/LayoutBuilder.h:21,
                 from application/views/ConversationView.cpp:14:
/boot/system/develop/headers/os/interface/SplitView.h:38:13: note: candidate: 'float BSplitView::ItemWeight(int32) const'
    float    ItemWeight(int32 index) const;
             ^~~~~~~~~~
/boot/system/develop/headers/os/interface/SplitView.h:39:13: note: candidate: 'float BSplitView::ItemWeight(BLayoutItem*) const'
    float    ItemWeight(BLayoutItem* item) const;
             ^~~~~~~~~~
application/views/ConversationView.cpp:314:38: error: call of overloaded 'ItemWeight(int)' is ambiguous
  *vertChat = fVertSplit->ItemWeight(0);
                                      ^
In file included from /boot/system/develop/headers/os/interface/LayoutBuilder.h:21,
                 from application/views/ConversationView.cpp:14:
/boot/system/develop/headers/os/interface/SplitView.h:38:13: note: candidate: 'float BSplitView::ItemWeight(int32) const'
    float    ItemWeight(int32 index) const;
             ^~~~~~~~~~
/boot/system/develop/headers/os/interface/SplitView.h:39:13: note: candidate: 'float BSplitView::ItemWeight(BLayoutItem*) const'
    float    ItemWeight(BLayoutItem* item) const;
             ^~~~~~~~~~
/boot/system/develop//etc/makefile-engine:300: recipe for target 'objects.x86-cc8-release/ConversationView.o' failed
make[1]: *** [objects.x86-cc8-release/ConversationView.o] Error 1
make[1]: Leaving directory '/Opslag/haikuports/haiku-apps/chat_o_matic/work-x86-0.0.2/sources/Chat-O-Matic-0.0.2'
Makefile:4: recipe for target 'app' failed
make: *** [app] Error 2
JadedCtrl commented 3 years ago

10b63e4 should help with the ItemWeights

Begasus commented 3 years ago

Fixed thanks! (will need a new rebuild for haikuporter to be sure though) ;)