[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freewnn:00967] Re: Fwd: FreeWnn-1.1.1-a019 のコンパイル、 Mac OS 10.2.5 (Fink



On  5 May, Hiroo Ono wrote:
> 小野寛生です
> 
> MacOS X で、同梱の libtool がうまく動かないようなんですが、
> ../../libtool: test: too many arguments
> gcc -dynamiclib -undefined suppress -o .libs/libwnn.0.0.0.dylib js.lo
> wnnerrmsg.lo jl.lo msg.lo yincoding.lo py_table.lo zy_table.lo
> strings.lo bcopy.lo mkdir.lo ../../Wnn/romkan/rk_bltinfn.lo
> ../../Wnn/romkan/rk_main.lo ../../Wnn/romkan/rk_modread.lo
> ../../Wnn/romkan/rk_read.lo ../../Wnn/romkan/rk_vars.lo -lc
> -install_name /usr/local/lib/libwnn.0.dylib
> ld: -undefined error must be used when -twolevel_namespace is in
> effect

最近のgcc では
defineは -Dで
ubdefineは -Uです

-undefinedを -Uに
変えてみてはどうですか?

gcc-3.2.3のcppinit.cより
-------------------------------------------------
  -D<macro>                 Define a <macro> with string '1' as its value\n\
  -D<macro>=<val>           Define a <macro> with <val> as its value\n\
  -A<question>=<answer>     Assert the <answer> to <question>\n\
  -A-<question>=<answer>    Disable the <answer> to <question>\n\
  -U<macro>                 Undefine <macro> \n\
  -v                        Display the version number\n\
-------------------------------------------

Kaoru


> /usr/bin/libtool: internal link edit command failed
> make[2]: *** [libwnn.la] Error 1
> make[1]: *** [all] Error 1
> make: *** [all] Error 1
>