查看单个帖子
旧 2009-05-04, 05:12 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】build errors 9solaris0

build errors (solaris)
build errors (solaris)
i'm getting linker errors when compiling the odreadex example project. it's probably something obvious, but if it is, i can't spot it. the errors are...
undefined first referenced
symbol in file
oddbdatabasereactor::headersysvar_insbase_changed( oddbdatabase const *)exhostappservices.o
odrxobject::clone(void) const exsystemservices.o
oddbdate::getdate(short &, short &, short &) constdbdumper.o
oddbhostappservices::getblipmode(void) constexhostappservices.o
oddbdatabasereactor::headersysvar_userr5_changed(o ddbdatabase const *)exhostappservices.o
oddbdatabasereactor type_info node exhostappservices.o
oddbdatabasereactor::headersysvar_pinsbase_willcha nge(oddbdatabase const *)exhostappservices.o
oddbdatabase::getnamedobjectsdictionaryid(void) constdbdumper.o
[truncated]
my c compiler is g++, the compiler settings are...
-doda_gcc -doda_gcc_2_95 -doda_sun_sparc
the libs i'm specifying are...
dd_sparc32_db.a
dd_sparc32_gs.a
dd_sparc32_ft.a
dd_sparc32_modelergeometry.a
dd_sparc32_acisrenderer.a
dd_sparc32_acisbuilder.a
dd_sparc32_acis.a
dd_sparc32_ge.a
dd_sparc32_root.a
anyone able to suggest anything?
we haven't tested our solaris libs with gcc. do you know if mixing sun libs with gcc will work in general for c++ code? on the google groups it appeared that a number of people have had problems trying to do this.

drat.
in the example makefile, it seems to be using gcc, it even specifies -doda_gcc.
i'll give it a go on sun's compiler.
the example makefile was targeting linux (that's why the gcc stuff was in there).
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)