From: 大学生 <chi...@gm...> - 2010-11-17 10:22:32
|
Hello, every one! I compiled my code in linux successfully! When I compiled in MINGW in Windows xp. Error occurred...... The error information is in the following: make -C accelerate ACCELERATE make[1]: Entering directory `/d/foaf/src/accelerate' make -C ihi IHI make[2]: Entering directory `/d/foaf/src/accelerate/ihi' cc1plus.exe: warning: -fPIC ignored for target (all code is position independent) ../../../../ACE_wrappers/ace/config-win32-common.h:162:41: error: operator '==' has no left operand g++ -I../../../../ACE_wrappers/ -I/usr/include/ -I/usr/local/include/ -g3 -D_LINUX -DSMSC -D_PLATFORM64_ -fPIC -I../../../../ACE_wrappers/ -I /usr/include/ -I/usr/local/include/ -g3 -D_LINUX -DSMSC -D_PLATFORM64_ -fPIC -c -finput-charset=GBK -o ../../../target/object/accelerate/ihi /hash_index.o hash_index.cpp hash_index.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) In file included from hash_index.h:5:0, from hash_index.cpp:7: ../../../include/foaf.h:294:0: warning: "FOAF_SLEEP" redefined ../../../include/foaf.h:256:0: note: this is the location of the previous definition ../../../include/foaf.h:295:0: warning: "FOAF_THREAD_ENTRY_RETURN" redefined ../../../include/foaf.h:257:0: note: this is the location of the previous definition ../../../include/foaf.h:296:0: warning: "FOAF_THREAD_CREATE" redefined ../../../include/foaf.h:258:0: note: this is the location of the previous definition ../../../include/foaf.h:304:0: warning: "FOAF_STRTOK_R" redefined ../../../include/foaf.h:290:0: note: this is the location of the previous definition In file included from ../../../../ACE_wrappers/ace/config-win32.h:30:0, from ../../../../ACE_wrappers/ace/config.h:1, from ../../../../ACE_wrappers/ace/config-macros.h:24, from ../../../../ACE_wrappers/ace/config-lite.h:24, from ../../../../ACE_wrappers/ace/config-all.h:20, from ../../../../ACE_wrappers/ace/Thread_Mutex.h:19, from hash_index.h:6, from hash_index.cpp:7: ../../../../ACE_wrappers/ace/config-win32-common.h:162:41: error: operator '==' has no left operand In file included from ../../../../ACE_wrappers/ace/config-win32-common.h:481:0, from ../../../../ACE_wrappers/ace/config-win32.h:30, from ../../../../ACE_wrappers/ace/config.h:1, from ../../../../ACE_wrappers/ace/config-macros.h:24, from ../../../../ACE_wrappers/ace/config-lite.h:24, from ../../../../ACE_wrappers/ace/config-all.h:20, from ../../../../ACE_wrappers/ace/Thread_Mutex.h:19, from hash_index.h:6, from hash_index.cpp:7: c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winsock2.h:103:2: warning: #warning "fd_set and associated macros have been defin ed in sys/types. This may cause runtime problems with W32 sockets" In file included from ../../../../ACE_wrappers/ace/OS_NS_fcntl.h:28:0, from ../../../../ACE_wrappers/ace/OS_NS_sys_mman.inl:5, from ../../../../ACE_wrappers/ace/OS_NS_sys_mman.h:93, from ../../../../ACE_wrappers/ace/OS_NS_Thread.inl:8, from ../../../../ACE_wrappers/ace/OS_NS_Thread.h:2020, from ../../../../ACE_wrappers/ace/Thread_Mutex.h:31, from hash_index.h:6, from hash_index.cpp:7: ../../../../ACE_wrappers/ace/os_include/os_fcntl.h:84:0: warning: "O_NDELAY" redefined C:/MinGW111/msys/1.0/include/fcntl.h:15:0: note: this is the location of the previous definition In file included from c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/bits/postypes.h:42:0, from c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/bits/char_traits.h:42, from c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/string:42, from ../../../include/foaf.h:4, from hash_index.h:5, from hash_index.cpp:7: c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:67:11: error: '::mbstate_t' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:143:11: error: '::btowc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:144:11: error: '::fgetwc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:145:11: error: '::fgetws' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:146:11: error: '::fputwc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:147:11: error: '::fputws' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:148:11: error: '::fwide' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:149:11: error: '::fwprintf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:150:11: error: '::fwscanf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:151:11: error: '::getwc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:152:11: error: '::getwchar' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:153:11: error: '::mbrlen' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:154:11: error: '::mbrtowc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:155:11: error: '::mbsinit' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:156:11: error: '::mbsrtowcs' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:157:11: error: '::putwc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:158:11: error: '::putwchar' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:162:11: error: '::swscanf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:163:11: error: '::ungetwc' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:164:11: error: '::vfwprintf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:166:11: error: '::vfwscanf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:172:11: error: '::vswscanf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:174:11: error: '::vwprintf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:176:11: error: '::vwscanf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:178:11: error: '::wcrtomb' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:179:11: error: '::wcscat' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:181:11: error: '::wcscoll' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:182:11: error: '::wcscpy' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:183:11: error: '::wcscspn' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:184:11: error: '::wcsftime' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:186:11: error: '::wcsncat' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:187:11: error: '::wcsncmp' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:188:11: error: '::wcsncpy' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:189:11: error: '::wcsrtombs' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:190:11: error: '::wcsspn' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:191:11: error: '::wcstod' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:193:11: error: '::wcstof' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:195:11: error: '::wcstok' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:196:11: error: '::wcstol' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:197:11: error: '::wcstoul' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:198:11: error: '::wcsxfrm' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:199:11: error: '::wctob' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:200:11: error: '::wmemcmp' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:201:11: error: '::wmemcpy' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:202:11: error: '::wmemmove' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:203:11: error: '::wmemset' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:204:11: error: '::wprintf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:205:11: error: '::wscanf' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:206:11: error: '::wcschr' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:207:11: error: '::wcspbrk' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:208:11: error: '::wcsrchr' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:209:11: error: '::wcsstr' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:210:11: error: '::wmemchr' has not been declared c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar: In function 'wchar_t* std::wcschr(wchar_t*, wchar_t)': c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:215:55: error: invalid conversion from 'const wchar_t*' to 'wchar_t*' c:\mingw111\bin\../lib/gcc/mingw32/4.5.0/include/c++/cwchar:215:55: error: initializing argument 1 of 'wchar_t* std::wcschr(wchar_t*, wchar_ t)' Any help will be appreciated and good luck for you! Tian Zhichao Chengdu ,Sichuan , China |