View previous topic - View next topic |
Author |
Message |
BigManJones Scholar
Joined: 22 Mar 2003 Posts: 196
|
Posted: Sat Apr 12, 2003 12:26 pm Post subject: Making a LUA lib with Mingw |
[quote] |
|
I downloaded LUA 4.01 and I compiled the interpreter and compiler and stuff but the lib was a different story entirely. I don't know enough about make files to convert it from linux to windows and the install directions don't tell you how to compile the lib for windows. Has anyone done this? How do you make a lib with mingw (and devcpp)? Whats the difference between a .a and .dll? Which do I need for LUA? Does anyone else hate it when the 'simple' stuff stops you cold?
|
|
Back to top |
|
|
Rainer Deyke Demon Hunter
Joined: 05 Jun 2002 Posts: 672
|
Posted: Sat Apr 12, 2003 4:55 pm Post subject: |
[quote] |
|
Have you tried running the msys shell and just typing "make"? I have no experience with LUA, but many Linux programs build that way under Windows.
.a files are static library files. You need to link your program to them to use them. .dll files are dynamic library files. You need to have them in the same directory as your program to use them. Most .dll files come with a small .a (or .lib) file that you need to link into your program in order to use them.
|
|
Back to top |
|
|
BigManJones Scholar
Joined: 22 Mar 2003 Posts: 196
|
Posted: Sat Apr 12, 2003 6:59 pm Post subject: |
[quote] |
|
The make file looks like it should work but I get a "too many arguments error' on them all, not sure why. I've got all the unixutils in my bin so thats not a problem.
I found the 'compile static lib' option under the new project dialogue in devcpp and that gave me a .a So we'll see if it works.
|
|
Back to top |
|
|
janus Mage
Joined: 29 Jun 2002 Posts: 464 Location: Issaquah, WA
|
Posted: Thu Apr 17, 2003 7:30 am Post subject: |
[quote] |
|
You need the .dll. If it helps at all, I have a version I compiled under VC6.
|
|
Back to top |
|
|