Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Help compiling Lua socket server to .exe
Post Body

I'm testing a game server (based on LuaSocket), which I'd like to compile into an executable for distribution. I tried compiling it using "srlua", but it seems like it's unable to include the required socket library.

I found a suggestion to use "luac" to compile the script with the required socket library into bytecode and then compile the resulting file with "srlua". Unfortunately, when I tried doing luac path\to\socket\core.dll server.lua it gave me a strange error, which I assume is because the library is a .dll

I also tried using L-bia to compile my script, but there must be a mistake in this program because all it seems to be able to do is print "Hello" to the console.

I've been searching how to make srlua include the socket library and how to use L-bia for hours, so any help at all is appreciated!

Author
Account Strength
0%
Account Age
15 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,685
Link Karma
2,660
Comment Karma
3,025
Profile updated: 1 day ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
12 years ago