Yes, this appears with gcc-3.
Seems it appears with gcc-4.2 too.
With my gcc-4.3.3 all compiled ok.
I attached a patch to fix the issue.
Anton Pak
On Fri, 02 Jul 2010 15:36:03 +0400, Chandru... <[email protected]>
wrote:
hi,
when i complie the latest hpibrowser with my qt 4.4.3 it returns error in
static const size_t MAX_ACTIONS = 13; declaration of file
ui/ActionsWidget.h
...
currently i moved it as a global for temp/.. solution ... but can any one
clarify this error and how to resolve it ...
the running OS is ubuntu 8.04 ... gcc version 4.2.4 and the actual
error ..
-- .output/ActionsWidget.o: In function `cActionsWidget::Update()':
ActionsWidget.cpp:(.text+0x8a6): undefined reference to
`cActionsWidget::MAX_ACTIONS'
ActionsWidget.cpp:(.text+0x8ac): undefined reference to
`cActionsWidget::MAX_ACTIONS'
collect2: ld returned 1 exit status
WAGMARE
Index: ui/ActionsWidget.h
===================================================================
--- ui/ActionsWidget.h (revision 7081)
+++ ui/ActionsWidget.h (working copy)
@@ -30,6 +30,8 @@
/************************************************
* class cActionsWidget
***********************************************/
+#define MAX_ACTIONS ((size_t)13)
+
class cActionsWidget : public QWidget
{
Q_OBJECT
@@ -47,8 +49,6 @@
private:
// data
- static const size_t MAX_ACTIONS = 13;
-
cHpiProvider& m_provider;
QSignalMapper * m_mapper;
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel