lua-users home
lua-l archive

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



c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC>luarocks install ao LIBAO_
DIR=c:\Users\Stuart\Downloads\libao-1.0.0
Installing http://luarocks.org/repositories/rocks/ao-1.0.0-1.src.rock...
cl /MD /O2 -c -Fosrc/lao.obj -IC:/Program Files (x86)/Lua/5.1/include src/lao.c
-Ic:\Users\Stuart\Downloads\libao-1.0.0/include
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

lao.c
src/lao.c(32) : error C2275: 'ao_sample_format' : illegal use of this type as an
 expression
c:\Users\Stuart\Downloads\libao-1.0.0/include\ao/ao.h(85) : see declarat
ion of 'ao_sample_format'
src/lao.c(32) : error C2146: syntax error : missing ';' before identifier 'fmt'
src/lao.c(32) : error C2065: 'fmt' : undeclared identifier
src/lao.c(33) : error C2143: syntax error : missing ';' before 'const'
src/lao.c(36) : error C2065: 'fmt' : undeclared identifier
src/lao.c(36) : error C2224: left of '.bits' must have struct/union type
src/lao.c(40) : error C2065: 'fmt' : undeclared identifier
src/lao.c(40) : error C2224: left of '.channels' must have struct/union type
src/lao.c(44) : error C2065: 'fmt' : undeclared identifier
src/lao.c(44) : error C2224: left of '.rate' must have struct/union type
src/lao.c(48) : error C2065: 'byte_format' : undeclared identifier
src/lao.c(48) : warning C4047: '=' : 'int' differs in levels of indirection from
 'const char *'
src/lao.c(50) : error C2065: 'byte_format' : undeclared identifier
src/lao.c(50) : warning C4047: 'function' : 'const char *' differs in levels of
indirection from 'int'
src/lao.c(50) : warning C4024: 'strcmp' : different types for formal and actual
parameter 1
src/lao.c(51) : error C2065: 'fmt' : undeclared identifier
src/lao.c(51) : error C2224: left of '.byte_format' must have struct/union type
src/lao.c(52) : error C2065: 'byte_format' : undeclared identifier
src/lao.c(52) : warning C4047: 'function' : 'const char *' differs in levels of
indirection from 'int'
src/lao.c(52) : warning C4024: 'strcmp' : different types for formal and actual
parameter 1
src/lao.c(53) : error C2065: 'fmt' : undeclared identifier
src/lao.c(53) : error C2224: left of '.byte_format' must have struct/union type
src/lao.c(54) : error C2065: 'byte_format' : undeclared identifier
src/lao.c(54) : warning C4047: 'function' : 'const char *' differs in levels of
indirection from 'int'
src/lao.c(54) : warning C4024: 'strcmp' : different types for formal and actual
parameter 1
src/lao.c(55) : error C2065: 'fmt' : undeclared identifier
src/lao.c(55) : error C2224: left of '.byte_format' must have struct/union type
src/lao.c(58) : error C2065: 'fmt' : undeclared identifier
src/lao.c(58) : error C2440: 'return' : cannot convert from 'int' to 'ao_sample_
format'
src/lao.c(85) : error C2275: 'ao_device' : illegal use of this type as an expres
sion
c:\Users\Stuart\Downloads\libao-1.0.0/include\ao/ao.h(77) : see declarat
ion of 'ao_device'
src/lao.c(85) : error C2065: 'dev' : undeclared identifier
src/lao.c(85) : error C2100: illegal indirection
src/lao.c(89) : error C2065: 'dev' : undeclared identifier
src/lao.c(89) : warning C4022: 'memset' : pointer mismatch for actual parameter
1
src/lao.c(91) : error C2275: 'ao_device' : illegal use of this type as an expres
sion
c:\Users\Stuart\Downloads\libao-1.0.0/include\ao/ao.h(77) : see declarat
ion of 'ao_device'
src/lao.c(91) : error C2065: 'tdev' : undeclared identifier
src/lao.c(92) : error C2065: 'tdev' : undeclared identifier
src/lao.c(115) : error C2065: 'dev' : undeclared identifier
src/lao.c(115) : error C2100: illegal indirection
src/lao.c(115) : error C2065: 'tdev' : undeclared identifier
src/lao.c(125) : error C2143: syntax error : missing ';' before 'type'
src/lao.c(126) : error C2143: syntax error : missing ';' before 'type'
src/lao.c(127) : error C2143: syntax error : missing ';' before 'type'
src/lao.c(128) : error C2275: 'size_t' : illegal use of this type as an expressi
on
c:\program files (x86)\microsoft visual studio 9.0\vc\include\codeanalys
is\sourceannotations.h(19) : see declaration of 'size_t'
src/lao.c(128) : error C2146: syntax error : missing ';' before identifier 'nbyt
es'
src/lao.c(128) : error C2065: 'nbytes' : undeclared identifier
src/lao.c(130) : error C2065: 'nbytes' : undeclared identifier
src/lao.c(131) : error C2275: 'ao_device' : illegal use of this type as an expre
ssion
c:\Users\Stuart\Downloads\libao-1.0.0/include\ao/ao.h(77) : see declarat
ion of 'ao_device'
src/lao.c(131) : error C2065: 'dev' : undeclared identifier
src/lao.c(131) : error C2100: illegal indirection
src/lao.c(131) : error C2065: 'nbytes' : undeclared identifier
src/lao.c(135) : error C2065: 'dev' : undeclared identifier
src/lao.c(135) : warning C4022: 'memset' : pointer mismatch for actual parameter
 1
src/lao.c(135) : error C2065: 'nbytes' : undeclared identifier
src/lao.c(137) : error C2275: 'ao_device' : illegal use of this type as an expre
ssion
c:\Users\Stuart\Downloads\libao-1.0.0/include\ao/ao.h(77) : see declarat
ion of 'ao_device'
src/lao.c(137) : error C2065: 'tdev' : undeclared identifier
src/lao.c(137) : error C2065: 'overwrite' : undeclared identifier
src/lao.c(137) : error C2065: 'fmt' : undeclared identifier
src/lao.c(137) : warning C4133: 'function' : incompatible types - from 'int *' t
o 'ao_sample_format *'
src/lao.c(137) : error C2065: 'opt' : undeclared identifier
src/lao.c(137) : warning C4133: 'function' : incompatible types - from 'int *' t
o 'ao_option *'
src/lao.c(138) : error C2065: 'tdev' : undeclared identifier
src/lao.c(164) : error C2065: 'dev' : undeclared identifier
src/lao.c(164) : error C2100: illegal indirection
src/lao.c(164) : error C2065: 'tdev' : undeclared identifier

Error: Build error: Failed compiling object src/lao.obj



On Tue, 07 Sep 2010 09:30:16 -0400, Ignacio Burgueño <ignaciob@inconcertcc.com> wrote:

On Mon, Sep 6, 2010 at 5:55 PM, Stuart P. Bentley <stuart@testtrack4.com>wrote:


 cl /MD /O2 -c -Fosrc/lao.obj -IC:/Program Files (x86)/Lua/5.1/include
src/lao.c -IC:\Users\Stuart\Downloads\libao-1.0.0/include
 'cl' is not recognized as an internal or external command,
 operable program or batch file.

 Error: Build error: Failed compiling object src/lao.obj

Ignoring the obvious errors that I don't have cl in my path and don't have
an lao.obj, isn't luarocks supposed to provide some sort of contained
compilation solution on Windows, and shouldn't those -I parameters be quoted
(since the first one goes to a path with spaces)?



If you have Visual Studio installed, you need to open a command prompt. For
instance, in VS2008, there's "Visual Studio 2008 Command Prompt" in the
start menu. Open that and rerun luarocks install there.