This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ICU4lua
- From: gurinder <nikolai_pavlov at inbox dot ru>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 23 Jun 2011 21:18:39 -0700 (PDT)
- Subject: ICU4lua
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.