Ogre

——静下心,坐坐……
posts - 4, comments - 2, trackbacks - 0, articles - 3
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理
那个any_converter稍作修改可以编译过,增加几个details::就行了。
但是tmd:

1,运行起来不work,说Trying to use unregistered class
2,这东西到底怎么工作的?那个convert_cpp_to_lua没任何地方有关系阿
用迅雷可以下的到,直接的链接坏了
感觉你的错误 错的很远
一般来说 编译期的多态是指 template的,函数重载 是函数重载
运行期的多态一半是通过虚表来实现的。
最后搞定了这个问题:
bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x64_9 –with-regex –toolset-msvc address-model=64 release

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x64_9 –with-regex –toolset-msvc address-model=64 debug

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x64_9 –with-regex –toolset=msvc msvc/link=static address-model=64 debug

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x64_9 –with-regex –toolset=msvc msvc/link=static address-model=64 release

如果是x86

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x86_9 –with-regex –toolset-msvc release

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x86_9 –with-regex –toolset-msvc debug

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x86_9 –with-regex –toolset=msvc msvc/link=static debug

bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x86_9 –with-regex –toolset=msvc msvc/link=static release

没有编译static link c++ runtime lib的static lib,只编译了动态link c++ runtime lib的dll以及static lib

注意编译完之后的dll,lib以及libxxx.lib拷贝到目录下时,要同时去掉1_35拷贝一份,因为boost头文件中通过prgram(link)进行的auto link指向的lib不包含1_35后缀

http://alpha.oopslab.net
用--with regex编译,出现同样错误,看来就是regex的问题
我用vc9编译,如果ICU和build-type=complete不一起用是可以的。
一起用就会出上面所说的问题。

非常奇怪
用vc2008编译出错:

M:\CODE\VNN4\OUTER\boost_1_35_0>bjam -a -sICU_PATH=m:\icu4c-3_8-src\icu_x86_9 --
without-python --without-mpi --toolset=msvc-9.0 --build-type=complete --prefix=m
:\boost86 install
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
Building Boost.Regex with Unicode/ICU support enabled
Using ICU in m:\icu4c-3_8-src\icu_x86_9/include
Skipping build of: ./install <build>no in common properties
Skipping build of: ./install <build>no in common properties
Skipping build of: ./install <build>no in common properties
Skipping build of: ./install <build>no in common properties
Skipping build of: libs/regex/build/icucore <build>no in common properties
Skipping build of: libs/regex/build/icuin <build>no in common properties
Skipping build of: libs/regex/build/icudata <build>no in common properties
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/kernel\class.jam:93: in new
*** argument error
* rule object(searched-lib-target)@54887.__init__ ( name : project : shared ? :
search * : action )
* called with: ( icudt icuin icuuc : object(project-target)@158 : true : /m:/icu
4c-3_8-src/icu_x86_9/lib : object(null-action)@54886 : : : : )
* extra argument icuin
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/tools\builtin.jam:349:see definit
ion of rule '__init__' being called
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/tools\builtin.jam:592: in object(
searched-lib-generator)@6.run
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:859: in try-
one-generator-really
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:920: in try-
one-generator
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:1131: in con
struct-really
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:1204: in gen
erators.construct
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/tools\builtin.jam:496: in object(
lib-generator)@5.run
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:859: in try-
one-generator-really
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:920: in try-
one-generator
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:1131: in con
struct-really
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\generators.jam:1204: in gen
erators.construct
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\targets.jam:1368: in constr
uct
M:/CODE/VNN4/OUTER/boost_1_35_0/tools/build/v2/build\targets.
M:\CODE\VNN4\OUTER\boost_1_35_0>

alphahunters@163.com