Iris2.de http://iris2.de/forum/ |
|
I get warnigns and error on iris2 compilation. http://iris2.de/forum/viewtopic.php?f=16&t=1219 |
Page 1 of 2 |
Author: | iuri_BR [ Wed Jul 30, 2008 1:00 am ] |
Post subject: | I get warnigns and error on iris2 compilation. |
I am using OpenSuSE 11 and trying to compile trunk version of iris2. When building caelumlib I get warning at every file. The warning is: Code: /usr/include/c++/4.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. And at end I get an error. Look: Code: lugre/src/lugre_spritelist.cpp: In member function ‘virtual void Lugre::cRobRenderable2D::Render(Lugre::cRenderManager2D&, const Ogre::Vector3&)’:
lugre/src/lugre_spritelist.cpp:330: error: cast from ‘Ogre::IndexData*’ to ‘int’ loses precision |
Author: | ghoulsblade [ Wed Jul 30, 2008 3:02 am ] |
Post subject: | |
i changed the line, please update and try again (update the lugre folder as well, it's included via svn:external) |
Author: | iuri_BR [ Wed Jul 30, 2008 3:42 am ] |
Post subject: | |
The warnings continues. And now I get another error. Look: Code: lugre_listener.cpp
lugre/src/lugre_listener.cpp: In destructor ‘virtual Lugre::cListenable::~cListenable()’: lugre/src/lugre_listener.cpp:12: error: ‘printf’ was not declared in this scope lugre/src/lugre_listener.cpp:13: error: ‘exit’ was not declared in this scope lugre/src/lugre_listener.cpp: In member function ‘void Lugre::cListenable::NotifyAllListeners(size_t, void*)’: lugre/src/lugre_listener.cpp:22: error: ‘printf’ was not declared in this scope lugre/src/lugre_listener.cpp:22: error: ‘exit’ was not declared in this scope lugre/src/lugre_listener.cpp: In member function ‘void Lugre::cListenable::UnRegisterListener(Lugre::cListener*, void*)’: lugre/src/lugre_listener.cpp:65: error: ‘printf’ was not declared in this scope lugre/src/lugre_listener.cpp:65: error: ‘exit’ was not declared in this scope Thanks. |
Author: | SiENcE [ Wed Jul 30, 2008 5:37 pm ] |
Post subject: | |
i moved this topic to coding. |
Author: | ghoulsblade [ Fri Aug 01, 2008 10:21 pm ] |
Post subject: | |
i added include directives for those (strange that the compiler didn't complain for us), please try again =) |
Author: | iuri_BR [ Mon Aug 04, 2008 12:50 am ] |
Post subject: | |
I am using gcc-4.3.1 to compile it. And now a get another error heh and the warnings continues. Look the error: Code: lugre_shell.cpp
lugre/src/lugre_shell.cpp: In member function ‘void Lugre::cShell::Init(int, char**)’: lugre/src/lugre_shell.cpp:96: error: ‘srand’ was not declared in this scope Thanks |
Author: | ghoulsblade [ Mon Aug 04, 2008 6:52 pm ] |
Post subject: | |
ok, please update and try again |
Author: | iuri_BR [ Fri Aug 08, 2008 12:30 am ] |
Post subject: | |
New error!! Code: lugre_sound.cpp
lugre/src/lugre_sound.cpp: In function ‘Lugre::cSoundSystem* Lugre::CreateSoundSystem(const char*, int)’: lugre/src/lugre_sound.cpp:26: error: ‘strcmp’ was not declared in this scope |
Author: | ghoulsblade [ Fri Aug 08, 2008 7:21 am ] |
Post subject: | |
new code, pleae update again =) |
Author: | iuri_BR [ Mon Aug 11, 2008 11:13 pm ] |
Post subject: | |
I will send complete message from last error. I think that problem persists. Code: iuri@linux-ueaf:~/Download/iris2svn> ./premakelinux.sh
disabled asserts (NDEBUG) Generating GNU makefiles: ...lugrelua ...md5lib ...caelumlib ...lugrelib ...iris ==== Building lugrelua ==== make[1]: `liblugrelua.a' está atualizado. ==== Building md5lib ==== make[1]: `libmd5lib.a' está atualizado. ==== Building caelumlib ==== make[1]: `libcaelumlib.a' está atualizado. ==== Building lugrelib ==== lugre_sound.cpp lugre/src/lugre_sound.cpp: In function ‘Lugre::cSoundSystem* Lugre::CreateSoundSystem(const char*, int)’: lugre/src/lugre_sound.cpp:26: error: ‘strcmp’ was not declared in this scope make[1]: ** [obj/Release/lugre_sound.o] Erro 1 make: ** [lugrelib] Erro 2 |
Author: | ghoulsblade [ Wed Aug 13, 2008 9:09 am ] |
Post subject: | |
your system is strange, it doesn't know strcmp even if <cstring> is included. please do a cd /usr/include and then grep -inr cstring . and post the complete output |
Author: | iuri_BR [ Wed Aug 13, 2008 11:59 pm ] |
Post subject: | |
Here is: Code: ./c++/4.3/gcj/cni.h:40:JvAllocString (jsize sz)
./c++/4.3/gcj/cni.h:42: return _Jv_AllocString (sz); ./c++/4.3/gcj/javaprims.h:872:extern "C" jstring _Jv_AllocString(jsize) __attribute__((__malloc__)); ./c++/4.3/java/lang/String.h:31:jstring _Jv_AllocString (jsize); ./c++/4.3/java/lang/String.h:144: friend jstring (::_Jv_AllocString) (jsize); ./c++/4.3/java/lang/reflect/Method.h:43: ::java::lang::String * toGenericString(); ./c++/4.3/java/lang/reflect/Field.h:35: ::java::lang::String * toGenericString(); ./c++/4.3/java/lang/reflect/Constructor.h:37: ::java::lang::String * toGenericString(); ./c++/4.3/x86_64-suse-linux/bits/stdc++.h:51:#include <cstring> grep: aviso: ./c++/4.3/x86_64-suse-linux/32: loop de diretório recursivo ./c++/4.3/cstring:31:/** @file cstring ./c++/4.3/cstring:51:#ifndef _GLIBCXX_CSTRING ./c++/4.3/cstring:52:#define _GLIBCXX_CSTRING 1 ./ssl/asn1.h:118:#define V_ASN1_NUMERICSTRING 18 /**/ ./ssl/asn1.h:126:#define V_ASN1_GRAPHICSTRING 25 /**/ ./ssl/asn1.h:134:#define B_ASN1_NUMERICSTRING 0x0001 ./ssl/asn1.h:140:#define B_ASN1_GRAPHICSTRING 0x0020 ./openssl/asn1.h:118:#define V_ASN1_NUMERICSTRING 18 /**/ ./openssl/asn1.h:126:#define V_ASN1_GRAPHICSTRING 25 /**/ ./openssl/asn1.h:134:#define B_ASN1_NUMERICSTRING 0x0001 ./openssl/asn1.h:140:#define B_ASN1_GRAPHICSTRING 0x0020 ./X11/StringDefs.h:202:#define XtCString "String" ./X11/StringDefs.h:736:#ifndef XtCString ./X11/StringDefs.h:737:#define XtCString ((char*)&XtStrings[1416]) ./glib-2.0/gobject/gparamspecs.h:80:#define G_PARAM_SPEC_STRING(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), G_TYPE_PARAM_STRING, GParamSpecString)) ./glib-2.0/gobject/gparamspecs.h:119:typedef struct _GParamSpecString GParamSpecString; ./glib-2.0/gobject/gparamspecs.h:236:struct _GParamSpecString ./gmpxx.h:37:#include <cstring> /* for strlen */ ./gmpxx.h:1294:struct __gmp_alloc_cstring ./gmpxx.h:1297: __gmp_alloc_cstring(char *s) { str = s; } ./gmpxx.h:1298: ~__gmp_alloc_cstring() ./gmpxx.h:1586: __gmp_alloc_cstring temp(mpz_get_str(0, base, mp)); ./gmpxx.h:1767: __gmp_alloc_cstring temp(mpq_get_str(0, base, mp)); ./gmpxx.h:1969: __gmp_alloc_cstring temp(mpf_get_str(0, &expo, base, size, mp)); ./OGRE/OgreUTFString.h:2290: mutable size_t m_bufferSize; // size of the CString buffer ./OGRE/OgreStdHeaders.h:22:#include <cstring> Cya |
Author: | ghoulsblade [ Thu Aug 14, 2008 7:26 am ] |
Post subject: | |
oops, sorry, i meant grep -inr strcmp . rather than grep -inr cstring . |
Author: | iuri_BR [ Thu Aug 14, 2008 10:28 pm ] |
Post subject: | |
All right. Here is: Code: ./SDL/SDL_stdinc.h:520:#ifdef HAVE_STRCMP
./SDL/SDL_stdinc.h:521:#define SDL_strcmp strcmp ./SDL/SDL_stdinc.h:523:extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2); ./SDL/SDL_config.h:124:#define HAVE_STRCMP 1 ./c++/4.3/bits/locale_facets_nonio.h:1323: if (__builtin_strcmp(__s, "C") != 0 ./c++/4.3/bits/locale_facets_nonio.h:1324: && __builtin_strcmp(__s, "POSIX") != 0) ./c++/4.3/bits/locale_facets.h:1927: if (__builtin_strcmp(__s, "C") != 0 ./c++/4.3/bits/locale_facets.h:1928: && __builtin_strcmp(__s, "POSIX") != 0) ./c++/4.3/bits/locale_classes.h:537: __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; ./c++/4.3/bits/locale_classes.h:798: if (__builtin_strcmp(__s, "C") != 0 ./c++/4.3/bits/locale_classes.h:799: && __builtin_strcmp(__s, "POSIX") != 0) ./c++/4.3/bits/codecvt.h:460: if (__builtin_strcmp(__s, "C") != 0 ./c++/4.3/bits/codecvt.h:461: && __builtin_strcmp(__s, "POSIX") != 0) ./c++/4.3/x86_64-suse-linux/bits/messages_members.h:58: if (__builtin_strcmp(__s, _S_get_c_name()) != 0) ./c++/4.3/x86_64-suse-linux/bits/messages_members.h:114: if (__builtin_strcmp(__s, locale::facet::_S_get_c_name()) != 0) ./c++/4.3/x86_64-suse-linux/bits/messages_members.h:125: if (__builtin_strcmp(__s, "C") != 0 ./c++/4.3/x86_64-suse-linux/bits/messages_members.h:126: && __builtin_strcmp(__s, "POSIX") != 0) ./c++/4.3/x86_64-suse-linux/bits/time_members.h:63: if (__builtin_strcmp(__s, _S_get_c_name()) != 0) ./c++/4.3/x86_64-suse-linux/bits/ctype_noninline.h:54: if (__builtin_strcmp(__old, "C")) ./c++/4.3/x86_64-suse-linux/bits/ctype_noninline.h:96: if (__builtin_strcmp(__old, "C")) ./c++/4.3/x86_64-suse-linux/bits/ctype_noninline.h:141: if (__builtin_strcmp(__old, "C")) ./c++/4.3/x86_64-suse-linux/bits/c++locale.h:81: if (__builtin_strcmp(__old, "C")) grep: aviso: ./c++/4.3/x86_64-suse-linux/32: loop de diretório recursivo ./c++/4.3/cstring:62:#undef strcmp ./c++/4.3/cstring:86: using ::strcmp; ./c++/4.3/typeinfo:55:// out-of-line strcmp if not. Out-of-line pointer comparison is used ./c++/4.3/typeinfo:60:// out-of-line comparison. Inline strcmp is not currently supported. The ./zzip/memdisk.h:126: zzip_strcmp_fn_t compare); ./zzip/fseeko.h:35:typedef int (*zzip_strcmp_fn_t)(char*, char*); ./zzip/fseeko.h:70: zzip_strcmp_fn_t compare); ./zzip/mmapped.h:50:typedef int (*zzip_strcmp_fn_t)(char*, char*); ./zzip/mmapped.h:92: zzip_strcmp_fn_t compare); ./freetype2/freetype/config/ftstdlib.h:89:#define ft_strcmp strcmp ./gtk-2.0/gtk/gtkfilesystem.h:434:#define gtk_file_path_compare(path1,path2) strcmp (gtk_file_path_get_string (path1), \ ./bits/string2.h:798:#ifndef _HAVE_STRING_ARCH_strcmp ./bits/string2.h:800:# define strcmp(s1, s2) \ ./bits/string2.h:807: ? __builtin_strcmp (s1, s2) \ ./bits/string2.h:811: ? __builtin_strcmp (s1, s2) \ ./bits/string2.h:812: : __strcmp_cg (s1, s2, __s1_len)) \ ./bits/string2.h:816: ? __builtin_strcmp (s1, s2) \ ./bits/string2.h:817: : __strcmp_gc (s1, s2, __s2_len)) \ ./bits/string2.h:818: : __builtin_strcmp (s1, s2)))); }) ./bits/string2.h:820:# define strcmp(s1, s2) \ ./bits/string2.h:832: ? __strcmp_cc (s1, s2, __s1_len) \ ./bits/string2.h:833: : __strcmp_cg (s1, s2, __s1_len)) \ ./bits/string2.h:837: ? __strcmp_cc (s1, s2, __s2_len) \ ./bits/string2.h:838: : __strcmp_gc (s1, s2, __s2_len)) \ ./bits/string2.h:839: : strcmp (s1, s2)))); }) ./bits/string2.h:842:# define __strcmp_cc(s1, s2, l) \ ./bits/string2.h:869:# define __strcmp_cg(s1, s2, l1) \ ./bits/string2.h:891:# define __strcmp_gc(s1, s2, l2) \ ./bits/string2.h:926: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ./string.h:99:extern int strcmp (__const char *__s1, __const char *__s2) ./fontconfig/fontconfig.h:833:FcStrCmpIgnoreCase (const FcChar8 *s1, const FcChar8 *s2); ./fontconfig/fontconfig.h:836:FcStrCmp (const FcChar8 *s1, const FcChar8 *s2); ./dyn-string.h:38:/* Compare DS1 to DS2 with strcmp. */ ./dyn-string.h:40: (strcmp ((DS1)->s, (DS2)->s)) ./X11/Xtrans/Xtranssock.c:319: if (!strcmp (family, Sockettrans2devtab[i].transname)) ./X11/Xtrans/Xtranssock.c:1542: if (strcmp(host,addrlist->host) || strcmp(port,addrlist->port)) { ./X11/Xtrans/Xtranssock.c:1605: if (strcmp(Sockettrans2devtab[ciptr->index].transname, ./X11/Xtrans/Xtranssock.c:1646: if (strcmp(Sockettrans2devtab[ciptr->index].transname, ./X11/Xtrans/Xtranssock.c:1899: if (strcmp (hostnamebuf, host) == 0) ./X11/Xtrans/Xtranssock.c:1903: else if(xauthlocalname && strcmp (xauthlocalname, host) == 0) ./X11/Xtrans/Xtranssock.c:2057: if (host && *host && host[0]!='/' && strcmp (host, "unix") != 0 && !UnixHostReallyLocal (host)) ./X11/Xtrans/Xtranslcl.c:2038: if( strcmp(protocol,"local") && strcmp(protocol,"LOCAL") ) ./X11/Xtrans/Xtranslcl.c:2088: * This is equivalent to a case insensitive strcmp(), ./X11/Xtrans/Xtranslcl.c:2097: if(!strcmp(LOCALtrans2devtab[i].transname,typebuf)) ./X11/Xtrans/Xtranslcl.c:2130: if (uname (&name) >= 0 && strcmp (host, name.nodename) == 0) ./X11/Xtrans/Xtranslcl.c:2138: if (strcmp (host, buf) == 0) ./X11/Xtrans/Xtranslcl.c:2163: if (strcmp (host, "unix") != 0 && !HostReallyLocal (host)) ./X11/Xtrans/Xtranslcl.c:2268: if( strcmp(protocol,LOCALtrans2devtab[i].transname) != 0 ) ./X11/Xtrans/Xtranslcl.c:2396: if (!strcmp(thistrans->TransName, typebuf)) ./X11/Xtrans/Xtranslcl.c:2456: if( strcmp(thistrans->TransName, ./X11/Xtrans/Xtranslcl.c:2480: if( strcmp(thistrans->TransName, ./X11/Xtrans/Xtransos2.c:72: if (strcmp(protocol,"os2") && strcmp(protocol,"local")) { ./X11/Xtrans/Xtrans.c:188: if (!strcmp (protobuf, Xtransports[i].transport->TransName)) ./X11/Xtrans/Xtrans.c:304: ((_protocol != NULL) && (strcmp(_protocol, "dnet") == 0)) ) ./X11/Xtrans/Xtrans.c:323: ((strcmp(_protocol, "tcp") == 0) || (strcmp(_protocol, "inet6") == 0)) ./X11/Xtrans/Xtranstli.c:130: if( !strcmp(family,TLItrans2devtab[i].transname) ) ./X11/Xtrans/Xtranstli.c:395: if( strcmp(netconfigp->nc_protofmly, ./X11/Xaw/ToggleP.h:48:#define streq(a, b) (strcmp((a), (b)) == 0) ./X11/fonts/bdfint.h:36:#define bdfStrEqual(s1,s2) (!strcmp(s1,s2)) ./X11/Xresource.h:110:#define XrmStringsEqual(a1, a2) (strcmp(a1, a2) == 0) ./osipparser2/osip_message.h:255: 0==strcmp((msg)->sip_method,"INVITE")) ./osipparser2/osip_message.h:261: 0==strcmp((msg)->sip_method,"ACK")) ./osipparser2/osip_message.h:267: 0==strcmp((msg)->sip_method,"REGISTER")) ./osipparser2/osip_message.h:273: 0==strcmp((msg)->sip_method,"BYE")) ./osipparser2/osip_message.h:279: 0==strcmp((msg)->sip_method,"OPTIONS")) ./osipparser2/osip_message.h:285: 0==strcmp((msg)->sip_method,"INFO")) ./osipparser2/osip_message.h:291: 0==strcmp((msg)->sip_method,"CANCEL")) ./osipparser2/osip_message.h:297: 0==strcmp((msg)->sip_method,"REFER")) ./osipparser2/osip_message.h:303: 0==strcmp((msg)->sip_method,"NOTIFY")) ./osipparser2/osip_message.h:310: 0==strcmp((msg)->sip_method,"SUBSCRIBE")) ./osipparser2/osip_message.h:316: 0==strcmp((msg)->sip_method,"MESSAGE")) ./osipparser2/osip_message.h:322: 0==strcmp((msg)->sip_method,"PRACK")) ./osipparser2/osip_message.h:330: 0==strcmp((msg)->sip_method,"UPDATE")) ./osipparser2/osip_message.h:337: 0==strcmp((msg)->sip_method,"PUBLISH")) ./osipparser2/osip_message.h:389: 0==strcmp((msg)->cseq->method,(requestname))) ./glib-2.0/glib/gtestutils.h:32: if (g_strcmp0 (__s1, __s2) cmp 0) ; else \ ./glib-2.0/glib/gtestutils.h:61:int g_strcmp0 (const char *str1, |
Author: | ghoulsblade [ Fri Aug 15, 2008 2:08 pm ] |
Post subject: | |
ok, thanks, please update and try again =) |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |