Re: ICU4lua

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

 



On Thu, Jun 23, 2011 at 9:18 PM, gurinder <nikolai_pavlov@xxxxxxxx> wrote:
>
> I downloaded ICU4Lua from official site.
>
> We have *c. and *.h files. I linked them in *.o files: gcc -c *.c.
>
> Now I have many *.o files, but I don't linked in *.so.
>
> I entered: gcc -O2 -Wall -I/usr/local/include -lpthread -ldl -lm
> -L/usr/local/lib -licui18n -licuuc -licudata  -lpthread -ldl -lm icu.o -o
> icu.so, but I have many errors
>
>
>
> gcc -O2 -Wall -I/usr/local/include -lpthread -ldl -lm   -L/usr/local/lib
> -licui18n -licuuc -licudata  -lpthread -ldl -lm icu.o -o icu.so
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/crt1.o: In function
> `_start':
> /usr/src/packages/BUILD/glibc-2.11.2/csu/../sysdeps/x86_64/elf/start.S:109:
> undefined reference to `main'
> icu.o: In function `icu_convert':
> icu.c:(.text+0x1e): undefined reference to `luaL_checklstring'
> icu.c:(.text+0x40): undefined reference to `luaL_optlstring'
> icu.c:(.text+0x62): undefined reference to `luaL_optlstring'
> icu.c:(.text+0xc0): undefined reference to `lua_pushnil'
> icu.c:(.text+0xdc): undefined reference to `lua_pushstring'
> icu.c:(.text+0x150): undefined reference to `lua_pushnil'
> icu.c:(.text+0x16c): undefined reference to `lua_pushstring'
> icu.c:(.text+0x18c): undefined reference to `lua_pushlstring'
> icu.o: In function `icu_defaultencoding':
> icu.c:(.text+0x1bc): undefined reference to `lua_gettop'
> icu.c:(.text+0x1d6): undefined reference to `luaL_checklstring'
> icu.c:(.text+0x1f5): undefined reference to `lua_pushstring'
> icu.o: In function `icu_defaultlocale':
> icu.c:(.text+0x214): undefined reference to `lua_gettop'
> icu.c:(.text+0x235): undefined reference to `luaL_checklstring'
> icu.c:(.text+0x25b): undefined reference to `lua_pushstring'
> icu.o: In function `luaopen_icu':
> icu.c:(.text+0x284): undefined reference to `luaL_register'
> icu.c:(.text+0x295): undefined reference to `lua_pushstring'
> icu.c:(.text+0x2ab): undefined reference to `lua_setfield'
> collect2: ld returned 1 exit status
>
> Can you help me?
> --
> View this message in context: http://old.nabble.com/ICU4lua-tp31917243p31917243.html
> Sent from the gcc - Help mailing list archive at Nabble.com.
>
>

Gurinder,

I think you want the lua mailing list, not the gcc-help mailing list.
See: http://www.lua.org/lua-l.html

-Bryan



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux