Page 1 of 1

Compiling lua at command line

Posted: Sun May 01, 2011 12:33 pm
by N64vSNES
Yes I'm afraid so... :|

So I've been using cygwin and I need to compile lua libraries myself but it's not going quite to plan.

I can get it to compile and produce an object file (liblua.a)

But when I link to the object file I get this error:
Cygwin wrote: /../../../liblua.a: could not read symbols: File format not recongnized
I've always avoided command line compiling and compiling any libraries myself like the plaque so I'm really clueless, any ideas on would I could have done wrong? :(

If it helps any I'm using Cygwin with GCC 3.4.4 and I'm trying to compile lua 5.1

Thanks.

Re: Compiling lua at command line

Posted: Wed May 04, 2011 2:25 pm
by Falco Girgis
Question... why are you compiling in Cygwin? Start a new Visual Studio project, drag and drop a few files, push build, and you can avoid all of the bullshit.

Re: Compiling lua at command line

Posted: Wed May 04, 2011 2:32 pm
by Ginto8
GyroVorbis wrote:Question... why are you compiling in Cygwin? Start a new Visual Studio project, drag and drop a few files, push build, and you can avoid all of the bullshit.
because he'd going through the "OMG COMMAND LINE" phase, where one is uncontrollably compelled to do everything possible with the command line, even if there are better, easier methods. ;)