IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

QxOrm Discussion :

Message d'erreur à la compilation


Sujet :

QxOrm

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    83
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 83
    Par défaut Message d'erreur à la compilation
    Bonjour,

    voila mon probleme j'essaie de recuperrer mes donnees d'une base de donnee. Ainsi j'utilise la fonction fetch_by_query. Cependant, j'qi un enorme message d'erreur qui me semble incomprehensible:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    g++ -c -pipe -Wall -Wextra -O3 -g0 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Iheaders -I/usr/local/QxOrm/include -Imoc -o objects/wor_authenticationserver.o sources/wor_authenticationserver.cpp
    In file included from /usr/local/include/QxDao/../../inl/QxDao/QxDao_Helper.inl:59:0,
                     from /usr/local/include/QxDao/QxDao_Impl.h:58,
                     from /usr/local/include/QxOrm.h:113,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/../../inl/QxDao/QxDao_Helper_Container.inl: In destructor ‘qx::dao::detail::QxDao_Helper_Container<qx::QxCollection<Key, Value> >::~QxDao_Helper_Container() [with Key = QString, Value = boost::shared_ptr<wor_user>]’:
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:63:79:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll_Container<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:119:74:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/QxDao.h:617:83:   instantiated from ‘QSqlError qx::dao::fetch_by_query(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    sources/wor_authenticationserver.cpp:52:44:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/../../inl/QxDao/QxDao_Helper_Container.inl:80:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::resolveOutput(T&, QSqlQuery&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:92:7:   instantiated from ‘static void qx::dao::detail::QxDao_FetchAll_Container<T>::insertNewItem(T&, qx::dao::detail::QxDao_Helper_Container<T>&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:74:34:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll_Container<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:119:74:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/QxDao.h:617:83:   instantiated from ‘QSqlError qx::dao::fetch_by_query(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    sources/wor_authenticationserver.cpp:52:44:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:102:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::resolveOutput(T&, QSqlQuery&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:101:63:   instantiated from ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::resolveOutput(T&, QSqlQuery&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:92:7:   instantiated from ‘static void qx::dao::detail::QxDao_FetchAll_Container<T>::insertNewItem(T&, qx::dao::detail::QxDao_Helper_Container<T>&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:74:34:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll_Container<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:119:74:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/QxDao.h:617:83:   instantiated from ‘QSqlError qx::dao::fetch_by_query(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    sources/wor_authenticationserver.cpp:52:44:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:63:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:63:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Exist.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Exist<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:113:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::exist() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Exist.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:121:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchAll() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:66:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchById<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:130:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchById() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:68:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Insert.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Insert<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:138:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::insert() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Insert.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:69:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Update<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:147:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::update() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:62:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_DeleteById.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_DeleteById<T>::sql(QString&, qx::IxSqlQueryBuilder&, bool) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:173:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::deleteById() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_DeleteById.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:61:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_CreateTable.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_CreateTable<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:191:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::createTable() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_CreateTable.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::sql(QString&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:223:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchAll(const QStringList&) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:80:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:66:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchById<T>::sql(QString&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:235:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchById(const QStringList&) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl:57:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:69:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Update<T>::sql(QString&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:247:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::update(const QStringList&) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl:71:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:65:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll_WithRelation.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll_WithRelation<T>::sql(qx::QxSqlRelationLinked*, QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:199:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchAll_WithRelation(qx::QxSqlRelationLinked*) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll_WithRelation.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:67:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById_WithRelation.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchById_WithRelation<T>::sql(qx::QxSqlRelationLinked*, QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:210:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchById_WithRelation(qx::QxSqlRelationLinked*) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById_WithRelation.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    make: *** [objects/wor_authenticationserver.o] Error 1
    Voici le moment ou je l'appelle:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    qx::QxSqlQuery query;
        query.where("wor_user.id = 1");
        list_wor_user listUser;
        qx::dao::fetch_by_query(query, listUser);
        qDebug() << listUser.count();
    le .h:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    typedef boost::shared_ptr<wor_user> wor_user_ptr;
    typedef qx::QxCollection<QString, wor_user_ptr> list_wor_user;

  2. #2
    Membre Expert

    Profil pro
    Inscrit en
    Avril 2010
    Messages
    482
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 482
    Par défaut


    Ceux sont juste des BOOST_STATIC_ASSERT(false) (certaines vérifications faites à la compilation de ton programme) qui se déclenchent : je pense que tu n'as qu'une seule erreur à corriger !

    Peux-tu fournir stp le code de ta classe wor_user : l'intégralité de tes fichiers wor_user.h et wor_user.cpp ?
    Le site de la bibliothèque QxOrm : bibliothèque C++ de gestion de données (Mapping Objet Relationnel ou ORM) basée sur les frameworks Qt et boost.
    QxEntityEditor : éditeur graphique pour la bibliothèque QxOrm (application multi-plateforme pour gérer graphiquement le modèle d'entités).

    Tutoriel : installer un environnement de développement avec QxOrm sous Windows.
    Tutoriel qxBlog : gestion de blogs en C++/Qt.
    Tutoriel qxClientServer : création d'un serveur d'applications en C++/Qt.

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    83
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 83
    Par défaut
    oui bien sur:

    voici le code de wor_user.h:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
     
    #ifndef WOR_USER_H
    #define WOR_USER_H
     
    #include    "precompiled.h"
     
    class wor_user
    {
    public:
        wor_user();
        ~wor_user();
    private:
        int id;
        std::string username;
        std::string username_canonical;
        std::string email;
        std::string email_canonical;
        int enable;
        std::string salt;
        std::string password;
        std::string last_login;
        int 	locked;
        int     expired;
        std::string expires_at;
        std::string 	confirmation_token;
        std::string 	password_requested_at;
        std::string role;
        int credentials_expired;
        std::string credentials_expire_at;
    };
     
    typedef boost::shared_ptr<wor_user> wor_user_ptr;
    typedef qx::QxCollection<QString, wor_user_ptr> list_wor_user;
     
    #endif // WOR_USER_H
    le code de wor.cpp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
     
    #include "wor_user.h"
     
    QX_REGISTER_CPP_QX_BLOG(wor_user)
     
    namespace qx
    {
        template <>
        void register_class(QxClass<wor_user> & t)
        {
        }
    }
    par avance de te remercie de tes reponse

  4. #4
    Membre Expert

    Profil pro
    Inscrit en
    Avril 2010
    Messages
    482
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 482
    Par défaut
    Alors voici quelques remarques pour corriger ton code :

    1- par défaut, la clé primaire doit être de type long (la tienne est de type int), tu peux utiliser int si tu veux mais il faut ajouter une macro, plus d'infos ici : http://qt.developpez.com/faq/?page=b...rimary-qstring ;

    2- ne jamais inclure "precompiled.h" dans un fichier *.h => c'est une règle d'or à respecter ===> #include "precompiled.h" doit être la 1ère ligne de chaque fichier *.cpp, mais jamais dans un fichier *.h. Plus d'infos sur la notion de precompiled header en cherchant sur internet... ;

    3- il te manque la macro QX_REGISTER_HPP_QX_BLOG(...) dans ton fichier wor_user.h après la définition de ta classe, regarde l'exemple du site ici pour plus d'infos : http://www.qxorm.com/qxorm_fr/quick_sample.html, ou bien la définition des classes du tutoriel qxBlog, par exemple : http://marty-lionel.developpez.com/t...l-qxblog/#LVII ;

    4- met ton destructeur virtual : virtual ~wor_user(); ===> ça permet d'être certain d'avoir une classe polymorphique et QxOrm a besoin de ça ;

    5- pour ta query tu as écris ça : qx::QxSqlQuery query; query.where("wor_user.id = 1");
    il vaut mieux écrire : qx::QxSqlQuery query; query.where("wor_user.id").isEqualTo(1);
    Plus d'infos sur la notion de query ici : http://www.qxorm.com/qxorm_fr/faq.html#faq_210 ;

    6- il te manque la macro QX_REGISTER_FRIEND_CLASS car tes membres sont private, plus d'infos ici : http://www.qxorm.com/qxorm_fr/faq.html#faq_105 ;

    Bref, voici ce que pourrait donner ta classe :

    * Fichier wor_user.h :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    #ifndef WOR_USER_H
    #define WOR_USER_H
     
    class wor_user
    {
       QX_REGISTER_FRIEND_CLASS(wor_user)
    public:
        wor_user();
        virtual ~wor_user();
    private:
        long id;
        std::string username;
        std::string username_canonical;
        std::string email;
        std::string email_canonical;
        int enable;
        std::string salt;
        std::string password;
        std::string last_login;
        int 	locked;
        int     expired;
        std::string expires_at;
        std::string 	confirmation_token;
        std::string 	password_requested_at;
        std::string role;
        int credentials_expired;
        std::string credentials_expire_at;
    };
     
    QX_REGISTER_HPP_QX_BLOG(wor_user, qx::trait::no_base_class_defined, 0)
     
    typedef boost::shared_ptr<wor_user> wor_user_ptr;
    typedef qx::QxCollection<QString, wor_user_ptr> list_wor_user;
     
    #endif // WOR_USER_H
    * Fichier wor_user.cpp :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    #include "precompiled.h"
    #include "wor_user.h"
     
    QX_REGISTER_CPP_QX_BLOG(wor_user)
     
    namespace qx
    {
        template <>
        void register_class(QxClass<wor_user> & t)
        {
           // Ici il faut enregistrer tous tes membres dans le contexte QxOrm :
           t.id(& wor_user::id, "id");
     
           t.data(& wor_user::username, "username");
           t.data(& wor_user::email, "email");
           // etc...
        }
    }
    Le site de la bibliothèque QxOrm : bibliothèque C++ de gestion de données (Mapping Objet Relationnel ou ORM) basée sur les frameworks Qt et boost.
    QxEntityEditor : éditeur graphique pour la bibliothèque QxOrm (application multi-plateforme pour gérer graphiquement le modèle d'entités).

    Tutoriel : installer un environnement de développement avec QxOrm sous Windows.
    Tutoriel qxBlog : gestion de blogs en C++/Qt.
    Tutoriel qxClientServer : création d'un serveur d'applications en C++/Qt.

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2010
    Messages
    83
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 83
    Par défaut
    Bonjour,

    Merci de ta reponse. J'ai suivie tes instruction, cependant, j'ai tjr un message d'erreur a la compilation:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    g++ -c -pipe -Wall -Wextra -O3 -g0 -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4 -Iheaders -I/usr/local/QxOrm/include -Imoc -o objects/wor_authenticationserver.o sources/wor_authenticationserver.cpp
    In file included from /usr/local/include/QxDao/../../inl/QxDao/QxDao_Helper.inl:59:0,
                     from /usr/local/include/QxDao/QxDao_Impl.h:58,
                     from /usr/local/include/QxOrm.h:113,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/../../inl/QxDao/QxDao_Helper_Container.inl: In destructor ‘qx::dao::detail::QxDao_Helper_Container<qx::QxCollection<Key, Value> >::~QxDao_Helper_Container() [with Key = QString, Value = boost::shared_ptr<wor_user>]’:
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:63:79:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll_Container<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:119:74:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/QxDao.h:617:83:   instantiated from ‘QSqlError qx::dao::fetch_by_query(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    sources/wor_authenticationserver.cpp:52:44:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/../../inl/QxDao/QxDao_Helper_Container.inl:80:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::resolveOutput(T&, QSqlQuery&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:92:7:   instantiated from ‘static void qx::dao::detail::QxDao_FetchAll_Container<T>::insertNewItem(T&, qx::dao::detail::QxDao_Helper_Container<T>&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:74:34:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll_Container<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:119:74:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/QxDao.h:617:83:   instantiated from ‘QSqlError qx::dao::fetch_by_query(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    sources/wor_authenticationserver.cpp:52:44:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:102:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::resolveOutput(T&, QSqlQuery&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:101:63:   instantiated from ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::resolveOutput(T&, QSqlQuery&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:92:7:   instantiated from ‘static void qx::dao::detail::QxDao_FetchAll_Container<T>::insertNewItem(T&, qx::dao::detail::QxDao_Helper_Container<T>&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:74:34:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll_Container<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/../../inl/QxDao/QxDao_FetchAll.inl:119:74:   instantiated from ‘static QSqlError qx::dao::detail::QxDao_FetchAll<T>::fetchAll(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    /usr/local/include/QxDao/QxDao.h:617:83:   instantiated from ‘QSqlError qx::dao::fetch_by_query(const qx::QxSqlQuery&, T&, QSqlDatabase*, const QStringList&) [with T = qx::QxCollection<QString, boost::shared_ptr<wor_user> >]’
    sources/wor_authenticationserver.cpp:52:44:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:63:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:63:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Exist.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Exist<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:113:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::exist() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Exist.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:121:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchAll() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:66:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchById<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:130:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchById() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:68:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Insert.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Insert<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:138:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::insert() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Insert.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:69:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Update<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:147:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::update() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:62:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_DeleteById.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_DeleteById<T>::sql(QString&, qx::IxSqlQueryBuilder&, bool) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:173:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::deleteById() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_DeleteById.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:61:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_CreateTable.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_CreateTable<T>::sql(QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:191:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::createTable() [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_CreateTable.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:64:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll<T>::sql(QString&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:223:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchAll(const QStringList&) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll.inl:80:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:66:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchById<T>::sql(QString&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:235:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchById(const QStringList&) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById.inl:57:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:69:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_Update<T>::sql(QString&, qx::IxSqlQueryBuilder&, const QStringList&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:247:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::update(const QStringList&) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_Update.inl:71:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:65:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll_WithRelation.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchAll_WithRelation<T>::sql(qx::QxSqlRelationLinked*, QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:199:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchAll_WithRelation(qx::QxSqlRelationLinked*) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchAll_WithRelation.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    In file included from /usr/local/include/QxDao/QxSqlQueryHelper.h:67:0,
                     from /usr/local/include/QxDao/QxSqlQueryBuilder.h:43,
                     from /usr/local/include/QxOrm.h:100,
                     from headers/precompiled.h:4,
                     from headers/wor_authenticationserver.h:20,
                     from sources/wor_authenticationserver.cpp:15:
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById_WithRelation.inl: In static member function ‘static void qx::dao::detail::QxSqlQueryHelper_FetchById_WithRelation<T>::sql(qx::QxSqlRelationLinked*, QString&, qx::IxSqlQueryBuilder&) [with T = wor_user]’:
    /usr/local/include/QxDao/QxSqlQueryBuilder.h:210:7:   instantiated from ‘qx::IxSqlQueryBuilder& qx::QxSqlQueryBuilder<T>::fetchById_WithRelation(qx::QxSqlRelationLinked*) [with T = boost::shared_ptr<wor_user>, qx::IxSqlQueryBuilder = qx::IxSqlQueryBuilder]’
    sources/wor_authenticationserver.cpp:63:1:   instantiated from here
    /usr/local/include/QxDao/../../inl/QxDao/QxSqlQueryHelper_FetchById_WithRelation.inl:36:1: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’ 
    make: *** [objects/wor_authenticationserver.o] Error 1
    voici mes fichiers:
    wor_user.h:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    #ifndef WOR_USER_H
    #define WOR_USER_H
     
    class QX_BLOG_DLL_EXPORT  wor_user
    {
        QX_REGISTER_FRIEND_CLASS(wor_user)
    public:
        wor_user();
        virtual ~wor_user();
    private:
        long id;
        std::string username;
        std::string username_canonical;
        std::string email;
        std::string email_canonical;
        int enable;
        std::string salt;
        std::string password;
        std::string last_login;
        int 	locked;
        int     expired;
        std::string expires_at;
        std::string 	confirmation_token;
        std::string 	password_requested_at;
        std::string role;
        int credentials_expired;
        std::string credentials_expire_at;
    };
     
    typedef boost::shared_ptr<wor_user> wor_user_ptr;
    typedef qx::QxCollection<QString, wor_user_ptr> list_wor_user;
     
    #endif // WOR_USER_H
    wor_user.cpp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    #include "precompiled.h"
    #include "wor_user.h"
     
    QX_REGISTER_CPP_QX_BLOG(wor_user)
     
    namespace qx
    {
        template <>
        void register_class(QxClass<wor_user> & t)
        {
        }
    }
    Enfin, le code ou j'appelle ma requete sql:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
        qx::QxSqlQuery query;
        query.where("wor_user.id").isEqualTo(1);
        list_wor_user listUser;
        qx::dao::fetch_by_query(query, listUser);
        qDebug() << listUser.count();

  6. #6
    Membre Expert

    Profil pro
    Inscrit en
    Avril 2010
    Messages
    482
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2010
    Messages : 482
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    J'ai suivie tes instruction
    Pas vraiment
    Je t'ai fourni un code pour tes fichiers wor_user.h et wor_user.cpp.
    Et sur le code que toi tu fournis, à nouveau, il y a des choses qui manquent (par exemple, la macro QX_REGISTER_HPP_QX_BLOG dans le fichier .h, l'enregistrement des propriétés dans le fichier .cpp) !
    Regarde bien le code que j'ai fourni dans mon message précédent, normalement ça devrait fonctionner...
    Le site de la bibliothèque QxOrm : bibliothèque C++ de gestion de données (Mapping Objet Relationnel ou ORM) basée sur les frameworks Qt et boost.
    QxEntityEditor : éditeur graphique pour la bibliothèque QxOrm (application multi-plateforme pour gérer graphiquement le modèle d'entités).

    Tutoriel : installer un environnement de développement avec QxOrm sous Windows.
    Tutoriel qxBlog : gestion de blogs en C++/Qt.
    Tutoriel qxClientServer : création d'un serveur d'applications en C++/Qt.

Discussions similaires

  1. Message d'erreur de compilation
    Par niamura dans le forum Dev-C++
    Réponses: 4
    Dernier message: 02/04/2007, 12h12
  2. Info sur un message d'erreur de compilation
    Par rollergirl dans le forum Langage
    Réponses: 7
    Dernier message: 11/03/2007, 22h02
  3. Message d'erreur de compilation
    Par liazidf dans le forum Delphi
    Réponses: 3
    Dernier message: 13/12/2006, 13h52
  4. message d'erreur à la compilation
    Par Archimède dans le forum Delphi
    Réponses: 1
    Dernier message: 06/06/2006, 22h16
  5. Message d'erreur de compilation
    Par MANDET dans le forum Access
    Réponses: 2
    Dernier message: 23/05/2006, 11h50

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo