亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
1234下一頁
最近訪問板塊 發(fā)新帖
查看: 9921 | 回復(fù): 35
打印 上一主題 下一主題

[C++] Boost庫(kù)安裝好后代碼編譯出錯(cuò),無錯(cuò)誤行 [復(fù)制鏈接]

論壇徽章:
19
CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-09-18 15:15:15CU大;照
日期:2013-05-20 10:46:44CU大;照
日期:2013-05-20 10:46:38CU大牛徽章
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:25CU大;照
日期:2013-05-20 10:46:18CU大牛徽章
日期:2013-04-17 11:19:51CU大;照
日期:2013-04-17 11:19:42CU大;照
日期:2013-04-17 11:19:37CU大;照
日期:2013-04-17 11:19:32CU大;照
日期:2013-04-17 11:19:28
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2013-07-12 13:07 |只看該作者 |倒序?yàn)g覽
剛開始使用Boost
Windows 7 64bit
Eclipse+Mingw [gcc version 4.8.1 (rev2, Built by MinGW-builds project)]
boost_1_53_0.7z

從網(wǎng)上找來各種安裝代碼以及bjam --help產(chǎn)生的安裝幫助代碼,都會(huì)發(fā)生這樣的問題
  1. bjam.bat install --without-math --without-mpi --without-python toolset=gcc variant=release threading=multi link=shared runtime-link=shared
復(fù)制代碼
以下錯(cuò)誤代碼來自Eclipse的提示
  1. 12:55:51 **** Incremental Build of configuration Debug for project RegexBoost ****
  2. Info: Internal Builder is used for build
  3. g++ -o RegexBoost.exe regex.o
  4. regex.o: In function `boost::re_detail::cpp_regex_traits_char_layer<char>::cpp_regex_traits_char_layer(boost::re_detail::cpp_regex_traits_base<char> const&)':
  5. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:369: undefined reference to `boost::re_detail::cpp_regex_traits_char_layer<char>::init()'
  6. regex.o: In function `boost::re_detail::raw_storage::extend(unsigned long long)':
  7. C:/Boost/include/boost/regex/v4/regex_raw_buffer.hpp:131: undefined reference to `boost::re_detail::raw_storage::resize(unsigned long long)'
  8. regex.o: In function `boost::re_detail::save_state_init::save_state_init(boost::re_detail::saved_state**, boost::re_detail::saved_state**)':
  9. C:/Boost/include/boost/regex/v4/perl_matcher_non_recursive.hpp:107: undefined reference to `boost::re_detail::get_mem_block()'
  10. regex.o: In function `boost::re_detail::save_state_init::~save_state_init()':
  11. C:/Boost/include/boost/regex/v4/perl_matcher_non_recursive.hpp:115: undefined reference to `boost::re_detail::put_mem_block(void*)'
  12. regex.o: In function `boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_imp()':
  13. C:/Boost/include/boost/regex/v4/perl_matcher_common.hpp:206: undefined reference to `boost::re_detail::verify_options(unsigned int, boost::regex_constants::_match_flags)'
  14. regex.o: In function `boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find_imp()':
  15. C:/Boost/include/boost/regex/v4/perl_matcher_common.hpp:292: undefined reference to `boost::re_detail::verify_options(unsigned int, boost::regex_constants::_match_flags)'
  16. regex.o: In function `boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::unwind_extra_block(bool)':
  17. C:/Boost/include/boost/regex/v4/perl_matcher_non_recursive.hpp:1117: undefined reference to `boost::re_detail::put_mem_block(void*)'
  18. regex.o: In function `void boost::re_detail::raise_error<boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > >(boost::regex_traits_wrapper<boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::error_type)':
  19. C:/Boost/include/boost/regex/pattern_except.hpp:75: undefined reference to `boost::re_detail::raise_runtime_error(std::runtime_error const&)'
  20. regex.o: In function `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find_imp()':
  21. C:/Boost/include/boost/regex/v4/perl_matcher_common.hpp:292: undefined reference to `boost::re_detail::verify_options(unsigned int, boost::regex_constants::_match_flags)'
  22. regex.o: In function `boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::fail(boost::regex_constants::error_type, long long, std::string, long long)':
  23. C:/Boost/include/boost/regex/v4/basic_regex_parser.hpp:220: undefined reference to `boost::regex_error::regex_error(std::string const&, boost::regex_constants::error_type, long long)'
  24. C:/Boost/include/boost/regex/v4/basic_regex_parser.hpp:221: undefined reference to `boost::regex_error::raise() const'
  25. C:/Boost/include/boost/regex/v4/basic_regex_parser.hpp:221: undefined reference to `boost::regex_error::~regex_error()'
  26. C:/Boost/include/boost/regex/v4/basic_regex_parser.hpp:221: undefined reference to `boost::regex_error::~regex_error()'
  27. regex.o: In function `boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::fixup_recursions(boost::re_detail::re_syntax_base*)':
  28. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:793: undefined reference to `boost::regex_error::regex_error(std::string const&, boost::regex_constants::error_type, long long)'
  29. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:794: undefined reference to `boost::regex_error::raise() const'
  30. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:793: undefined reference to `boost::regex_error::~regex_error()'
  31. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:875: undefined reference to `boost::regex_error::regex_error(std::string const&, boost::regex_constants::error_type, long long)'
  32. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:876: undefined reference to `boost::regex_error::raise() const'
  33. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:875: undefined reference to `boost::regex_error::~regex_error()'
  34. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:793: undefined reference to `boost::regex_error::~regex_error()'
  35. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:875: undefined reference to `boost::regex_error::~regex_error()'
  36. regex.o: In function `boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::create_startmaps(boost::re_detail::re_syntax_base*)':
  37. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:940: undefined reference to `boost::regex_error::regex_error(std::string const&, boost::regex_constants::error_type, long long)'
  38. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:941: undefined reference to `boost::regex_error::raise() const'
  39. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:940: undefined reference to `boost::regex_error::~regex_error()'
  40. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:940: undefined reference to `boost::regex_error::~regex_error()'
  41. regex.o: In function `boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::create_startmap(boost::re_detail::re_syntax_base*, unsigned char*, unsigned int*, unsigned char)':
  42. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:1143: undefined reference to `boost::regex_error::regex_error(std::string const&, boost::regex_constants::error_type, long long)'
  43. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:1144: undefined reference to `boost::regex_error::raise() const'
  44. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:1143: undefined reference to `boost::regex_error::~regex_error()'
  45. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:1143: undefined reference to `boost::regex_error::~regex_error()'
  46. regex.o: In function `boost::re_detail::perl_matcher<char const*, std::allocator<boost::sub_match<char const*> >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack()':
  47. C:/Boost/include/boost/regex/v4/perl_matcher_non_recursive.hpp:213: undefined reference to `boost::re_detail::get_mem_block()'
  48. regex.o: In function `boost::re_detail::cpp_regex_traits_implementation<char>::error_string(boost::regex_constants::error_type) const':
  49. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:445: undefined reference to `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)'
  50. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:447: undefined reference to `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)'
  51. regex.o: In function `boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::insert_state(long long, boost::re_detail::syntax_element_type, unsigned long long)':
  52. C:/Boost/include/boost/regex/v4/basic_regex_creator.hpp:321: undefined reference to `boost::re_detail::raw_storage::insert(unsigned long long, unsigned long long)'
  53. regex.o: In function `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::unwind_extra_block(bool)':
  54. C:/Boost/include/boost/regex/v4/perl_matcher_non_recursive.hpp:1117: undefined reference to `boost::re_detail::put_mem_block(void*)'
  55. regex.o: In function `boost::object_cache<boost::re_detail::cpp_regex_traits_base<char>, boost::re_detail::cpp_regex_traits_implementation<char> >::get(boost::re_detail::cpp_regex_traits_base<char> const&, unsigned long long)':
  56. C:/Boost/include/boost/regex/pending/object_cache.hpp:66: undefined reference to `boost::scoped_static_mutex_lock::scoped_static_mutex_lock(boost::static_mutex&, bool)'
  57. C:/Boost/include/boost/regex/pending/object_cache.hpp:75: undefined reference to `boost::scoped_static_mutex_lock::~scoped_static_mutex_lock()'
  58. C:/Boost/include/boost/regex/pending/object_cache.hpp:75: undefined reference to `boost::scoped_static_mutex_lock::~scoped_static_mutex_lock()'
  59. regex.o: In function `boost::re_detail::cpp_regex_traits_implementation<char>::lookup_collatename(char const*, char const*) const':
  60. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:636: undefined reference to `boost::re_detail::lookup_default_collate_name(std::string const&)'
  61. regex.o: In function `boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::extend_stack()':
  62. C:/Boost/include/boost/regex/v4/perl_matcher_non_recursive.hpp:213: undefined reference to `boost::re_detail::get_mem_block()'
  63. regex.o: In function `boost::re_detail::cpp_regex_traits_implementation<char>::init()':
  64. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:678: undefined reference to `boost::re_detail::raise_runtime_error(std::runtime_error const&)'
  65. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:693: undefined reference to `boost::re_detail::get_default_error_string(boost::regex_constants::error_type)'
  66. regex.o: In function `boost::cpp_regex_traits<char>::get_catalog_name()':
  67. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:1062: undefined reference to `boost::scoped_static_mutex_lock::scoped_static_mutex_lock(boost::static_mutex&, bool)'
  68. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:1065: undefined reference to `boost::scoped_static_mutex_lock::~scoped_static_mutex_lock()'
  69. C:/Boost/include/boost/regex/v4/cpp_regex_traits.hpp:1065: undefined reference to `boost::scoped_static_mutex_lock::~scoped_static_mutex_lock()'
  70. collect2.exe: error: ld returned 1 exit status

  71. 12:55:57 Build Finished (took 6s.35ms)

復(fù)制代碼
以下是在CMD控制臺(tái)下編譯,因?yàn)樵O(shè)置的系統(tǒng)環(huán)境變量,因此沒有添加參數(shù)
  1. E:\Documents\workspace\RegexBoost>g++ regex.cpp
  2. D:\Temp\ccFDP1rc.o:regex.cpp:(.text$_ZN5boost9re_detail27cpp_regex_traits_char_l
  3. ayerIcEC2ERKNS0_21cpp_regex_traits_baseIcEE[_ZN5boost9re_detail27cpp_regex_trait
  4. s_char_layerIcEC2ERKNS0_21cpp_regex_traits_baseIcEE]+0x2b): undefined reference
  5. to `boost::re_detail::cpp_regex_traits_char_layer<char>::init()'
  6. D:\Temp\ccFDP1rc.o:regex.cpp:(.text$_ZN5boost9re_detail11raw_storage6extendEy[_Z
  7. N5boost9re_detail11raw_storage6extendEy]+0x5f): undefined reference to `boost::r
  8. e_detail::raw_storage::resize(unsigned long long)'
  9. d:/program files/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_6
  10. 4-w64-mingw32/bin/ld.exe: D:\Temp\ccFDP1rc.o: bad reloc address 0x5f in section
  11. `.text$_ZN5boost9re_detail11raw_storage6extendEy[_ZN5boost9re_detail11raw_storag
  12. e6extendEy]'
  13. collect2.exe: error: ld returned 1 exit status
復(fù)制代碼

論壇徽章:
19
CU大牛徽章
日期:2013-03-13 15:32:35CU大;照
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-05-20 10:46:44CU大牛徽章
日期:2013-05-20 10:46:38CU大;照
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:25CU大;照
日期:2013-05-20 10:46:18CU大;照
日期:2013-04-17 11:19:51CU大牛徽章
日期:2013-04-17 11:19:42CU大牛徽章
日期:2013-04-17 11:19:37CU大牛徽章
日期:2013-04-17 11:19:32CU大牛徽章
日期:2013-04-17 11:19:28
2 [報(bào)告]
發(fā)表于 2013-07-12 13:59 |只看該作者
@pmerofc幫忙看一下這個(gè),謝謝
@starwing83幫忙看一下這個(gè),謝謝
@Ager幫忙看一下這個(gè),謝謝
@群雄逐鹿中原幫忙看一下這個(gè),謝謝
@帥絕人寰幫忙看一下這個(gè),謝謝
@JohnBull幫忙看一下這個(gè),謝謝

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2013-07-12 14:07 |只看該作者
boost……饒了我行嗎?

先檢查一下boost那一大堆包裝全了沒有,比如libboost_regex之類的

論壇徽章:
19
CU大牛徽章
日期:2013-03-13 15:32:35CU大;照
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-05-20 10:46:44CU大牛徽章
日期:2013-05-20 10:46:38CU大;照
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:25CU大;照
日期:2013-05-20 10:46:18CU大;照
日期:2013-04-17 11:19:51CU大牛徽章
日期:2013-04-17 11:19:42CU大牛徽章
日期:2013-04-17 11:19:37CU大;照
日期:2013-04-17 11:19:32CU大;照
日期:2013-04-17 11:19:28
4 [報(bào)告]
發(fā)表于 2013-07-12 14:11 |只看該作者
JohnBull 發(fā)表于 2013-07-12 14:07
boost……饒了我行嗎?

先檢查一下boost那一大堆包裝全了沒有,比如libboost_regex之類的


我boost的官網(wǎng)上下載了一個(gè)7z包,然后參考網(wǎng)上的方法和他的幫助文檔編譯的,可是有問題.
很多Windows的幫助文檔都是那VC或者VS編譯的,而且都是些現(xiàn)在下載不到的舊版本

論壇徽章:
4
水瓶座
日期:2013-09-06 12:27:30摩羯座
日期:2013-09-28 14:07:46處女座
日期:2013-10-24 14:25:01酉雞
日期:2014-04-07 11:54:15
5 [報(bào)告]
發(fā)表于 2013-07-12 14:19 |只看該作者
用boost不好吧,pure C++比較中規(guī)中矩。

論壇徽章:
19
CU大;照
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-05-20 10:46:44CU大;照
日期:2013-05-20 10:46:38CU大;照
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:25CU大牛徽章
日期:2013-05-20 10:46:18CU大牛徽章
日期:2013-04-17 11:19:51CU大;照
日期:2013-04-17 11:19:42CU大;照
日期:2013-04-17 11:19:37CU大;照
日期:2013-04-17 11:19:32CU大;照
日期:2013-04-17 11:19:28
6 [報(bào)告]
發(fā)表于 2013-07-12 14:25 |只看該作者
linux_c_py_php 發(fā)表于 2013-07-12 14:19
用boost不好吧,pure C++比較中規(guī)中矩。


其實(shí)我的好奇心在于為啥都設(shè)置了C_INCLUDE_PATH 、CPLUS_INCLUDE_PATH 、LIBRARY_PATH之后還是出現(xiàn)大量的錯(cuò)誤,而且這些錯(cuò)誤在代碼中沒有提示錯(cuò)誤,都是一些以前沒有見過的錯(cuò)誤,好像是鏈接有問題

論壇徽章:
19
CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-05-20 10:46:44CU大;照
日期:2013-05-20 10:46:38CU大;照
日期:2013-05-20 10:46:31CU大;照
日期:2013-05-20 10:46:25CU大;照
日期:2013-05-20 10:46:18CU大;照
日期:2013-04-17 11:19:51CU大;照
日期:2013-04-17 11:19:42CU大牛徽章
日期:2013-04-17 11:19:37CU大;照
日期:2013-04-17 11:19:32CU大;照
日期:2013-04-17 11:19:28
7 [報(bào)告]
發(fā)表于 2013-07-12 14:51 |只看該作者
linux_c_py_php 發(fā)表于 2013-07-12 14:19
用boost不好吧,pure C++比較中規(guī)中矩。


我不太喜歡VC、VS這些東西,往C盤裝的東西太多了

論壇徽章:
2
2015年辭舊歲徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:17
8 [報(bào)告]
發(fā)表于 2013-07-12 15:00 |只看該作者
尼瑪, 老子今天裝了個(gè)visual studio 2012, 氣的快吐血了, 詛咒了一百遍 啊一百遍, 尼瑪居然叫老子這從來不碰windows的人來搞這個(gè)……

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2013-07-12 15:06 |只看該作者
回復(fù) 1# 方兆國(guó)


你能否確定環(huán)境變量生效呢?

我在windows環(huán)境變量問題上被坑過一次,記得以前設(shè)置環(huán)境變量是有用的,后來某個(gè)版本winsdk之后突然不能用了。仔細(xì)檢查后發(fā)現(xiàn)新版本SDK在啟動(dòng)CMD時(shí)候先清除了環(huán)境變量...

論壇徽章:
19
CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-09-18 15:15:15CU大;照
日期:2013-05-20 10:46:44CU大;照
日期:2013-05-20 10:46:38CU大;照
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:25CU大;照
日期:2013-05-20 10:46:18CU大;照
日期:2013-04-17 11:19:51CU大;照
日期:2013-04-17 11:19:42CU大;照
日期:2013-04-17 11:19:37CU大牛徽章
日期:2013-04-17 11:19:32CU大牛徽章
日期:2013-04-17 11:19:28
10 [報(bào)告]
發(fā)表于 2013-07-12 15:07 |只看該作者
帥絕人寰 發(fā)表于 2013-07-12 15:00
尼瑪, 老子今天裝了個(gè)visual studio 2012, 氣的快吐血了, 詛咒了一百遍 啊一百遍, 尼瑪居然叫老子這從來 ...

怎么了,不就是占用C盤空間多了些嗎?
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP