[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] fix building C++ bindings in ncurses-5.4 with -fno-implicit-temp
From: |
Mike Frysinger |
Subject: |
[patch] fix building C++ bindings in ncurses-5.4 with -fno-implicit-templates |
Date: |
Tue, 3 May 2005 00:49:28 -0400 |
User-agent: |
KMail/1.8 |
the C++ demo.cc fails to compile if you build with -fno-implicit-templates:
../obj_s/demo.o(.gnu.linkonce.t._ZN6MyMenuC1Ev+0x427): In function
`MyMenu::MyMenu()':
: undefined reference to `vtable for NCursesUserItem<UserData>'
../obj_s/demo.o(.gnu.linkonce.t._ZN6MyMenuC1Ev+0x451): In function
`MyMenu::MyMenu()':
: undefined reference to `vtable for MyAction<UserData>'
here's the two line fix:
--- c++/demo.cc
+++ c++/demo.cc
@@ -152,6 +152,8 @@
return FALSE;
}
};
+template class MyAction<UserData>;
+template class NCURSES_IMPEXP NCursesUserItem<UserData>;
class QuitItem : public NCursesMenuItem
{
-mike
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] fix building C++ bindings in ncurses-5.4 with -fno-implicit-templates,
Mike Frysinger <=