- May
- 120
- 1
Normally, I use gcc (mingw) as my C compiler, so I am not surprised
that the TakeCmd.lib file supplied with the SDK isn't of any use to
me. But I just now tried MS C (specifically, MS Visual C++ 2008
Express edition from the command line, only to find that it doesn't
seem to work with that, either!!!
Copyright (C) Microsoft Corporation. All rights reserved.
Lua.c
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
/out:Lua.dll
/dll
/implib:Lua.lib
Lua.obj
sdk\TakeCmd.lib
\Utils\Lua\lib\lua51.lib
Creating library Lua.lib and object Lua.exp
Lua.obj : error LNK2019: unresolved external symbol
_QueryIsFileUnicode@4 referenced in function _StdinIsUnicode
Lua.obj : error LNK2019: unresolved external symbol
_QueryUnicodeOutput@0 referenced in function _StdinIsUnicode
Lua.obj : error LNK2019: unresolved external symbol _QueryIsConsole@4
referenced in function _StdinIsUnicode
Lua.obj : error LNK2019: unresolved external symbol _encode referenced
in function _luaU_reader
Lua.obj : error LNK2019: unresolved external symbol _ReadStdInput
referenced in function _luaU_reader
Lua.obj : error LNK2019: unresolved external symbol _FreeMem@4
referenced in function _luaU_reader
Lua.obj : error LNK2019: unresolved external symbol _Qprintf
referenced in function _luaU_printerr
Lua.obj : error LNK2019: unresolved external symbol _decode referenced
in function _luaU_printerr
Lua.obj : error LNK2019: unresolved external symbol _ASCIIToUnicode@12
referenced in function __lua_version@4
Lua.obj : error LNK2019: unresolved external symbol _Command@8
referenced in function _tcc_exec
Lua.obj : error LNK2019: unresolved external symbol
_StripEnclosingQuotes@4 referenced in function _create_args
Lua.obj : error LNK2019: unresolved external symbol _NextArgument@8
referenced in function _create_args
Lua.obj : error LNK2019: unresolved external symbol _NthArgument@16
referenced in function _create_args
Lua.obj : error LNK2019: unresolved external symbol _Printf referenced
in function _lua@4
Lua.dll : fatal error LNK1120: 14 unresolved externals
So what precisely is TakeCmd.lib meant to be used for? And how should
I use the SDK without needing to manually hack an import library for
TakeCmd.dll?
Paul.
that the TakeCmd.lib file supplied with the SDK isn't of any use to
me. But I just now tried MS C (specifically, MS Visual C++ 2008
Express edition from the command line, only to find that it doesn't
seem to work with that, either!!!
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86>cl /LD /O2 Lua.c /I sdk /I \Utils\Lua\include sdk\TakeCmd.lib \Utils\Lua\lib\lua51.lib
Copyright (C) Microsoft Corporation. All rights reserved.
Lua.c
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
/out:Lua.dll
/dll
/implib:Lua.lib
Lua.obj
sdk\TakeCmd.lib
\Utils\Lua\lib\lua51.lib
Creating library Lua.lib and object Lua.exp
Lua.obj : error LNK2019: unresolved external symbol
_QueryIsFileUnicode@4 referenced in function _StdinIsUnicode
Lua.obj : error LNK2019: unresolved external symbol
_QueryUnicodeOutput@0 referenced in function _StdinIsUnicode
Lua.obj : error LNK2019: unresolved external symbol _QueryIsConsole@4
referenced in function _StdinIsUnicode
Lua.obj : error LNK2019: unresolved external symbol _encode referenced
in function _luaU_reader
Lua.obj : error LNK2019: unresolved external symbol _ReadStdInput
referenced in function _luaU_reader
Lua.obj : error LNK2019: unresolved external symbol _FreeMem@4
referenced in function _luaU_reader
Lua.obj : error LNK2019: unresolved external symbol _Qprintf
referenced in function _luaU_printerr
Lua.obj : error LNK2019: unresolved external symbol _decode referenced
in function _luaU_printerr
Lua.obj : error LNK2019: unresolved external symbol _ASCIIToUnicode@12
referenced in function __lua_version@4
Lua.obj : error LNK2019: unresolved external symbol _Command@8
referenced in function _tcc_exec
Lua.obj : error LNK2019: unresolved external symbol
_StripEnclosingQuotes@4 referenced in function _create_args
Lua.obj : error LNK2019: unresolved external symbol _NextArgument@8
referenced in function _create_args
Lua.obj : error LNK2019: unresolved external symbol _NthArgument@16
referenced in function _create_args
Lua.obj : error LNK2019: unresolved external symbol _Printf referenced
in function _lua@4
Lua.dll : fatal error LNK1120: 14 unresolved externals
So what precisely is TakeCmd.lib meant to be used for? And how should
I use the SDK without needing to manually hack an import library for
TakeCmd.dll?
Paul.