lua-users home
lua-l archive

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


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