[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua forwarding DLL
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Wed, 23 May 2007 13:19:24 -0400
Shmuel Zeigerman wrote:
> > Cannot export lua5.1.luaL_addlstring: symbol not defined > Cannot
> export lua5.1.luaL_addstring: symbol not defined <--snip-->
> > Cannot export lua5.1.lua_xmove: symbol not defined > Cannot
> export lua5.1.lua_yield: symbol not defined > collect2: ld returned
> 1 exit status > strip: 'lua51.dll': No such file
>
> I suppose it may be due to old versions of GCC (3.4.2) and LD
> (2.15.91) that are installed on my system.
I used MinGW 5.0.2 which comes with gcc 3.4.4, ld 2.16.91. I used my
script with the following command line:
$ lua mkforwardlib-gcc.lua lua5.1 lua51 X86
$ dumpbin -exports lua51.dll
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file lua51.dll
File Type: DLL
Section contains the following exports for lua51.dll
00000000 characteristics
465475EB time date stamp Wed May 23 13:12:11 2007
0.00 version
1 ordinal base
114 number of functions
114 number of names
ordinal hint RVA name
1 0 luaL_addlstring (forwarded to
lua5.1.luaL_addlstring)
2 1 luaL_addstring (forwarded to
lua5.1.luaL_addstring)
3 2 luaL_addvalue (forwarded to
lua5.1.luaL_addvalue)
4 3 luaL_argerror (forwarded to
lua5.1.luaL_argerror)
5 4 luaL_buffinit (forwarded to
lua5.1.luaL_buffinit)
6 5 luaL_callmeta (forwarded to
lua5.1.luaL_callmeta)
7 6 luaL_checkany (forwarded to
lua5.1.luaL_checkany)
8 7 luaL_checkinteger (forwarded to
lua5.1.luaL_checkinteger)
9 8 luaL_checklstring (forwarded to
lua5.1.luaL_checklstring)
10 9 luaL_checknumber (forwarded to
lua5.1.luaL_checknumber)
11 A luaL_checkoption (forwarded to
lua5.1.luaL_checkoption)
12 B luaL_checkstack (forwarded to
lua5.1.luaL_checkstack)
13 C luaL_checktype (forwarded to
lua5.1.luaL_checktype)
14 D luaL_checkudata (forwarded to
lua5.1.luaL_checkudata)
15 E luaL_error (forwarded to lua5.1.luaL_error)
16 F luaL_findtable (forwarded to
lua5.1.luaL_findtable)
17 10 luaL_getmetafield (forwarded to
lua5.1.luaL_getmetafield)
18 11 luaL_gsub (forwarded to lua5.1.luaL_gsub)
19 12 luaL_loadbuffer (forwarded to
lua5.1.luaL_loadbuffer)
20 13 luaL_loadfile (forwarded to
lua5.1.luaL_loadfile)
21 14 luaL_loadstring (forwarded to
lua5.1.luaL_loadstring)
22 15 luaL_newmetatable (forwarded to
lua5.1.luaL_newmetatable)
23 16 luaL_newstate (forwarded to
lua5.1.luaL_newstate)
24 17 luaL_openlib (forwarded to
lua5.1.luaL_openlib)
25 18 luaL_openlibs (forwarded to
lua5.1.luaL_openlibs)
26 19 luaL_optinteger (forwarded to
lua5.1.luaL_optinteger)
27 1A luaL_optlstring (forwarded to
lua5.1.luaL_optlstring)
28 1B luaL_optnumber (forwarded to
lua5.1.luaL_optnumber)
29 1C luaL_prepbuffer (forwarded to
lua5.1.luaL_prepbuffer)
30 1D luaL_pushresult (forwarded to
lua5.1.luaL_pushresult)
31 1E luaL_ref (forwarded to lua5.1.luaL_ref)
32 1F luaL_register (forwarded to
lua5.1.luaL_register)
33 20 luaL_typerror (forwarded to
lua5.1.luaL_typerror)
34 21 luaL_unref (forwarded to lua5.1.luaL_unref)
35 22 luaL_where (forwarded to lua5.1.luaL_where)
36 23 lua_atpanic (forwarded to lua5.1.lua_atpanic)
37 24 lua_call (forwarded to lua5.1.lua_call)
38 25 lua_checkstack (forwarded to
lua5.1.lua_checkstack)
39 26 lua_close (forwarded to lua5.1.lua_close)
40 27 lua_concat (forwarded to lua5.1.lua_concat)
41 28 lua_cpcall (forwarded to lua5.1.lua_cpcall)
42 29 lua_createtable (forwarded to
lua5.1.lua_createtable)
43 2A lua_dump (forwarded to lua5.1.lua_dump)
44 2B lua_equal (forwarded to lua5.1.lua_equal)
45 2C lua_error (forwarded to lua5.1.lua_error)
46 2D lua_gc (forwarded to lua5.1.lua_gc)
47 2E lua_getallocf (forwarded to
lua5.1.lua_getallocf)
48 2F lua_getfenv (forwarded to lua5.1.lua_getfenv)
49 30 lua_getfield (forwarded to
lua5.1.lua_getfield)
50 31 lua_gethook (forwarded to lua5.1.lua_gethook)
51 32 lua_gethookcount (forwarded to
lua5.1.lua_gethookcount)
52 33 lua_gethookmask (forwarded to
lua5.1.lua_gethookmask)
53 34 lua_getinfo (forwarded to lua5.1.lua_getinfo)
54 35 lua_getlocal (forwarded to
lua5.1.lua_getlocal)
55 36 lua_getmetatable (forwarded to
lua5.1.lua_getmetatable)
56 37 lua_getstack (forwarded to
lua5.1.lua_getstack)
57 38 lua_gettable (forwarded to
lua5.1.lua_gettable)
58 39 lua_gettop (forwarded to lua5.1.lua_gettop)
59 3A lua_getupvalue (forwarded to
lua5.1.lua_getupvalue)
60 3B lua_insert (forwarded to lua5.1.lua_insert)
61 3C lua_iscfunction (forwarded to
lua5.1.lua_iscfunction)
62 3D lua_isnumber (forwarded to
lua5.1.lua_isnumber)
63 3E lua_isstring (forwarded to
lua5.1.lua_isstring)
64 3F lua_isuserdata (forwarded to
lua5.1.lua_isuserdata)
65 40 lua_lessthan (forwarded to
lua5.1.lua_lessthan)
66 41 lua_load (forwarded to lua5.1.lua_load)
67 42 lua_newstate (forwarded to
lua5.1.lua_newstate)
68 43 lua_newthread (forwarded to
lua5.1.lua_newthread)
69 44 lua_newuserdata (forwarded to
lua5.1.lua_newuserdata)
70 45 lua_next (forwarded to lua5.1.lua_next)
71 46 lua_objlen (forwarded to lua5.1.lua_objlen)
72 47 lua_pcall (forwarded to lua5.1.lua_pcall)
73 48 lua_pushboolean (forwarded to
lua5.1.lua_pushboolean)
74 49 lua_pushcclosure (forwarded to
lua5.1.lua_pushcclosure)
75 4A lua_pushfstring (forwarded to
lua5.1.lua_pushfstring)
76 4B lua_pushinteger (forwarded to
lua5.1.lua_pushinteger)
77 4C lua_pushlightuserdata (forwarded to
lua5.1.lua_pushlightuserdata)
78 4D lua_pushlstring (forwarded to
lua5.1.lua_pushlstring)
79 4E lua_pushnil (forwarded to lua5.1.lua_pushnil)
80 4F lua_pushnumber (forwarded to
lua5.1.lua_pushnumber)
81 50 lua_pushstring (forwarded to
lua5.1.lua_pushstring)
82 51 lua_pushthread (forwarded to
lua5.1.lua_pushthread)
83 52 lua_pushvalue (forwarded to
lua5.1.lua_pushvalue)
84 53 lua_pushvfstring (forwarded to
lua5.1.lua_pushvfstring)
85 54 lua_rawequal (forwarded to
lua5.1.lua_rawequal)
86 55 lua_rawget (forwarded to lua5.1.lua_rawget)
87 56 lua_rawgeti (forwarded to lua5.1.lua_rawgeti)
88 57 lua_rawset (forwarded to lua5.1.lua_rawset)
89 58 lua_rawseti (forwarded to lua5.1.lua_rawseti)
90 59 lua_remove (forwarded to lua5.1.lua_remove)
91 5A lua_replace (forwarded to lua5.1.lua_replace)
92 5B lua_resume (forwarded to lua5.1.lua_resume)
93 5C lua_setallocf (forwarded to
lua5.1.lua_setallocf)
94 5D lua_setfenv (forwarded to lua5.1.lua_setfenv)
95 5E lua_setfield (forwarded to
lua5.1.lua_setfield)
96 5F lua_sethook (forwarded to lua5.1.lua_sethook)
97 60 lua_setlocal (forwarded to
lua5.1.lua_setlocal)
98 61 lua_setmetatable (forwarded to
lua5.1.lua_setmetatable)
99 62 lua_settable (forwarded to
lua5.1.lua_settable)
100 63 lua_settop (forwarded to lua5.1.lua_settop)
101 64 lua_setupvalue (forwarded to
lua5.1.lua_setupvalue)
102 65 lua_status (forwarded to lua5.1.lua_status)
103 66 lua_toboolean (forwarded to
lua5.1.lua_toboolean)
104 67 lua_tocfunction (forwarded to
lua5.1.lua_tocfunction)
105 68 lua_tointeger (forwarded to
lua5.1.lua_tointeger)
106 69 lua_tolstring (forwarded to
lua5.1.lua_tolstring)
107 6A lua_tonumber (forwarded to
lua5.1.lua_tonumber)
108 6B lua_topointer (forwarded to
lua5.1.lua_topointer)
109 6C lua_tothread (forwarded to
lua5.1.lua_tothread)
110 6D lua_touserdata (forwarded to
lua5.1.lua_touserdata)
111 6E lua_type (forwarded to lua5.1.lua_type)
112 6F lua_typename (forwarded to
lua5.1.lua_typename)
113 70 lua_xmove (forwarded to lua5.1.lua_xmove)
114 71 lua_yield (forwarded to lua5.1.lua_yield)
Summary
2000 .edata
1000 .idata
1000 .text