Newsgroup: it.comp.os.linux.development
Titolo: errore cpp in compilazione pacchettto

compilando mysql-workbench ricevo questo errore in compilazione:
mdc_area_group.cpp:51: error: no match for 'operator!='
la riga incrimitata č questa:
for (std::list<CanvasItem*>::const_reverse_iterator iter= _contents.rbegin();
     iter != _contents.rend(); ++iter)
essendo io a digiuno di c++ chiedo a voi se sapete a cosa č dovuto nu
errore del genere , voglio dire č un pacchetto ufficiale rilasciato da
mysql, non credo abbia errori di sitassi o quel che č.
forse una versione di gcc vecchia?
se cosě fosse , perchč il configure č andato a buon fine?
sul mio sistema ho installate sia gcc-3.4.6  che gcc-4.1.2, ma da errore
(lo stesso) con entrambe
grazie 

 
curiosità: riesci a cambiare
std::list<CanvasItem*>::const_reverse_iterator
in
std::list<CanvasItem*>::reverse_iterator
e a vedere cosa dice?
-- 
SF
"Games are very educational. Scrabble teaches us vocabulary, Monopoly teaches 
us cash-flow management, and Dungeons & Dragons teaches us to loot dead bodies."

 e a vedere cosa dice?
ca$$o, ha funzionato!!!
per favore, ma le spieghi questa?
grazie mille

 per favore, ma le spieghi questa?
forse ho parlato un po' troppo presto, nel senso che quel punto lo supera
senza errori, ma ne ricevo dopo (anche se non mi sembra che le due cose
siano correlate)
cmq, dopo ho:
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I. -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I../../../library/utilities/src -I/usr/include/mysql -march=i486 -mtune=i686 -DDLOAD_JVM -DENABLE_JAVA_MODULES -DENABLE_LUA_MODULES -Wall -Wsign-compare -ggdb3 -MT myx_grt_java.lo -MD -MP -MF .deps/myx_grt_java.Tpo -c myx_grt_java.c  -fPIC -DPIC -o .libs/myx_grt_java.o
myx_grt_java.c: In function 'myx_java_init_loader':
myx_grt_java.c:69: warning: control reaches end of non-void function
myx_grt_java.c: In function 'myx_java_init_loader_advanced':
myx_grt_java.c:202: warning: implicit declaration of function 'myx_grt_messages_stack_add_error'
myx_grt_java.c:253: warning: assignment discards qualifiers from pointer target type
myx_grt_java.c:263: warning: assignment discards qualifiers from pointer target type
myx_grt_java.c:273: warning: implicit declaration of function 'myx_grt_messages_stack_add_message'
myx_grt_java.c: In function 'java_init_module':
myx_grt_java.c:826: warning: unused variable 'return_type'
myx_grt_java.c: In function 'j_xml_object_from_grt_value':
myx_grt_java.c:962: error: too few arguments to function 'myx_grt_value_to_xml'
myx_grt_java.c: In function 'j_xml_global_object_from_grt_value':
myx_grt_java.c:978: warning: implicit declaration of function 'myx_grt_value_to_xml_global_object'
myx_grt_java.c:978: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'j_grt_value_from_java_xml_object':
myx_grt_java.c:1002: warning: implicit declaration of function 'myx_grt_value_from_xml_global_object'
myx_grt_java.c:1002: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'java_global_object_from_grt_value':
myx_grt_java.c:1065: warning: implicit declaration of function 'myx_grt_list_content_get_struct_name'
myx_grt_java.c:1070: warning: passing argument 1 of 'g_strdup' makes pointer from integer without a cast
myx_grt_java.c:1089: warning: passing argument 2 of '(*env)->NewStringUTF' makes pointer from integer without a cast
myx_grt_java.c:1105: warning: implicit declaration of function 'myx_grt_dict_struct_get_name'
myx_grt_java.c:1109: warning: passing argument 1 of 'g_strdup' makes pointer from integer without a cast
myx_grt_java.c: In function 'java_object_to_global_grt_value':
myx_grt_java.c:1191: error: incompatible type for argument 1 of 'myx_grt_list_new'
myx_grt_java.c:1191: error: incompatible type for argument 2 of 'myx_grt_list_new'
myx_grt_java.c:1191: error: too few arguments to function 'myx_grt_list_new'
myx_grt_java.c:1240: error: incompatible type for argument 1 of 'myx_grt_dict_new_typed'
myx_grt_java.c:1240: error: incompatible type for argument 2 of 'myx_grt_dict_new_typed'
myx_grt_java.c:1240: error: too few arguments to function 'myx_grt_dict_new_typed'
myx_grt_java.c:1291: error: too many arguments to function 'myx_grt_dict_new'
myx_grt_java.c:1317: warning: implicit declaration of function 'myx_grt_struct_member_get_is_ref'
myx_grt_java.c:1353: warning: implicit declaration of function 'myx_grt_struct_member_get_struct_name'
myx_grt_java.c:1353: warning: comparison between pointer and integer
myx_grt_java.c:1355: warning: passing argument 1 of 'g_strdup' makes pointer from integer without a cast
myx_grt_java.c:1406: warning: passing argument 1 of 'myx_grt_list_new' makes pointer from integer without a cast
myx_grt_java.c:1406: error: incompatible type for argument 2 of 'myx_grt_list_new'
myx_grt_java.c:1406: error: too few arguments to function 'myx_grt_list_new'
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_callGrtFunction':
myx_grt_java.c:1492: error: too few arguments to function 'myx_grt_function_get_and_call'
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalById':
myx_grt_java.c:1523: warning: implicit declaration of function 'myx_grt_reference_cache_lookup'
myx_grt_java.c:1523: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:1526: warning: implicit declaration of function 'myx_grt_dict_get_object_path'
myx_grt_java.c:1526: warning: passing argument 3 of 'java_global_object_from_grt_value' makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalAsObject':
myx_grt_java.c:1548: warning: implicit declaration of function 'myx_grt_dict_item_get_by_path'
myx_grt_java.c:1548: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:1560: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:1566: warning: implicit declaration of function 'myx_grt_dict_struct_get'
myx_grt_java.c:1566: warning: initialization makes pointer from integer without a cast
myx_grt_java.c:1574: error: invalid operands to binary ==
myx_grt_java.c:1577: error: 'MYX_GRT_STRUCT_MEMBER' has no member named 'content_type'
myx_grt_java.c:1577: error: incompatible type for argument 2 of 'myx_grt_list_new'
myx_grt_java.c:1577: error: too few arguments to function 'myx_grt_list_new'
myx_grt_java.c:1579: error: 'MYX_GRT_STRUCT_MEMBER' has no member named 'content_type'
myx_grt_java.c:1579: error: 'MYX_GRT_STRUCT_MEMBER' has no member named 'content_struct_name'
myx_grt_java.c:1579: error: too few arguments to function 'myx_grt_list_new'
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalAsString':
myx_grt_java.c:1606: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalAsInt':
myx_grt_java.c:1626: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalAsReal':
myx_grt_java.c:1646: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_setGrtGlobalFromObject':
myx_grt_java.c:1675: warning: implicit declaration of function 'myx_grt_dict_item_set_by_path'
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalListSize':
myx_grt_java.c:1753: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalListItem':
myx_grt_java.c:1775: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_addGrtGlobalListItem':
myx_grt_java.c:1809: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:1816: warning: comparison between pointer and integer
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalDictItem':
myx_grt_java.c:1850: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_addGrtGlobalDictItem':
myx_grt_java.c:1880: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalDictKeyCount':
myx_grt_java.c:1909: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getGrtGlobalDictKey':
myx_grt_java.c:1929: warning: assignment makes pointer from integer without a cast
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_processMessages':
myx_grt_java.c:1955: warning: implicit declaration of function 'myx_grt_messages_free'
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_setBridgeDataObject':
myx_grt_java.c:1985: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:1989: warning: implicit declaration of function 'myx_grt_value_bridge_data_object_get'
myx_grt_java.c:1989: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:1996: warning: implicit declaration of function 'myx_grt_value_bridge_data_object_set'
myx_grt_java.c: In function 'Java_com_mysql_grt_GrtCallbackNative_getBridgeDataObject':
myx_grt_java.c:2014: warning: assignment makes pointer from integer without a cast
myx_grt_java.c:2016: warning: assignment makes pointer from integer without a cast
make[4]: *** [myx_grt_java.lo] Error 1
make[4]: Leaving directory `/home/andrea/src/mysql-workbench-5.0.25/library/grt/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/andrea/src/mysql-workbench-5.0.25/library/grt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andrea/src/mysql-workbench-5.0.25/library'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andrea/src/mysql-workbench-5.0.25'
make: *** [all] Error 2

 cmq, dopo ho:
mmh.. 'sto giro la mia sfera di cristallo non rivela niente di utile, sorry :)
