[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua-5.1.4 and lua-5.2.0-beta patches for WinCE and better Win32 integration
- From: Geoff Leyland <geoff_leyland@...>
- Date: Wed, 26 Oct 2011 10:07:28 +1300
On 26/10/2011, at 9:37 AM, Georg Lehner wrote:
> In some Windows API function calls just an "A" was appended to the name to force the use of
> the ANSI version instead of the UNICODE version of the function.
Are the "A" API calls available in all versions of windows?
$ uname
MINGW32_NT-5.1
$ make mingw CC=gcc
...
gcc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o loadlib.o loadlib.c
loadlib.c: In function 'll_sym':
loadlib.c:135:3: warning: implicit declaration of function 'GetProcAddressA'
...
gcc -shared -o lua51.dll lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o lle
x.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lund
ump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o lt
ablib.o lstrlib.o loadlib.o linit.o
loadlib.o:loadlib.c:(.text+0x9b7): undefined reference to `GetProcAddressA'
collect2: ld returned 1 exit status
make[2]: *** [lua51.dll] Error 1
make[2]: Leaving directory `/z/software/lua/lua-patched/src'
make[1]: *** [mingw] Error 2
make[1]: Leaving directory `/z/software/lua/lua-patched/src'
make: *** [mingw] Error 2