Compiling lua at command line

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Compiling lua at command line

Post 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.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Compiling lua at command line

Post 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.
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Compiling lua at command line

Post 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. ;)
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Post Reply