DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2012
Version: 2.0-current
OS: WinXP-PRO SP2 x32
Dev-Env: VS2005 SP1
The build of a dll from trunk on win32 with vc++ fails because of two
lines in WidgetAssociation.h:
Line 39: void* FL_API foreach(const AssociationType*, const Widget*,
AssociationFunctor&);
should be: FL_API void* foreach(const AssociationType*, const Widget*,
AssociationFunctor&);
Line 25: fails with "error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""public: virtual __thiscall
fltk::AssociationFunctor::~AssociationFunctor(void)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED])" in Funktion ""public: virtual void *
__thiscall fltk::AssociationFunctor::`scalar deleting destructor'(unsigned
int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])". WidgetAssociation.obj"
The attached patch "removes" the AssociationFunctor-destructor, fixes the
issue with line 39 and adds the necessary files to the vcnet-projects to
build fltk statically and as dll with WidgetAssociation on win32 with
VS2005.
cu Felix
Link: http://www.fltk.org/str.php?L2012
Version: 2.0-current
--- D:/Code/fltk-trunk/ide/vcnet/fltkdll.vcproj Sun Jul 20 17:14:04 2008
+++ D:/Code/fltk-2.0.x-r6148/ide/vcnet/fltkdll.vcproj Sun Jul 20 17:17:44 2008
@@ -4206,6 +4206,10 @@
</FileConfiguration>
</File>
<File
+ RelativePath="..\..\src\WidgetAssociation.cxx"
+ >
+ </File>
+ <File
RelativePath="..\..\src\Window.cxx"
>
<FileConfiguration
--- D:/Code/fltk-trunk/fltk/WidgetAssociation.h Tue Jul 15 08:42:07 2008
+++ D:/Code/fltk-2.0.x-r6148/fltk/WidgetAssociation.h Sun Jul 20 17:19:11 2008
@@ -22,7 +22,7 @@
* loop is aborted and the data pointer for the current association is
returned
*/
virtual bool handle(const AssociationType&, const Widget*, void* data) = 0;
- virtual ~AssociationFunctor();
+ //virtual ~AssociationFunctor();
};
/*! \relates AssociationType
@@ -36,7 +36,7 @@
* The function either returns the first associated data for which the functor
returns true, or NULL.
* See also Widget::foreach() and AssociationType::foreach().
*/
-void* FL_API foreach(const AssociationType*, const Widget*,
AssociationFunctor&);
+FL_API void* foreach(const AssociationType*, const Widget*,
AssociationFunctor&);
/*! \brief Base class for the association type.
*
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs