lua-users home
lua-l archive

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


On Sat, Apr 9, 2016 at 12:38 PM, Andrew Trevorrow <andrew@trevorrow.com> wrote:
> Ag is a free, open source anagram generator that runs on Windows,
> Mac OS X and Linux.  Version 1.1 is now scriptable, thanks to Lua.
> More details, including download links and screenshots, are here:
>
> http://ag1.sourceforge.net/
>
> The distribution includes a number of example scripts:
>
> conundrums.lua   -- generates 9-letter anagrams made from 2 words
> crossword.lua    -- creates a random crossword puzzle
> ladders.lua      -- finds word ladders
> lexstats.lua     -- displays statistics about the current lexicon
> palindromes.lua  -- finds all palindromes in the current lexicon
>
> This image shows Ag's console window after running lexstats.lua:
>
> http://ag1.sourceforge.net/ag-mac.png
>
> I've only been using Lua for a couple of months, so feedback from
> experienced Lua programmers would be most welcome.
>
> Andrew Trevorrow (aka Overt Word Warren)
>

I got linking errors on Linux when compiling with `make -f
makefile-gtk`. Symbols dlclose@@GLIBC_2.2.5 and other were missing.

Here is the patch:

diff --git a/gui-wx/makefile-gtk b/gui-wx/makefile-gtk
index 5678f18..5c8fa3e 100644
--- a/gui-wx/makefile-gtk
+++ b/gui-wx/makefile-gtk
@@ -33,7 +33,7 @@ LUALIB = $(LUADIR)/liblua.a
 CXXC = g++
 CXXFLAGS = `wx-config --cxxflags` -O3 -DVERSION=$(APP_VERSION) \
     -Wall -Wno-non-virtual-dtor -fno-strict-aliasing -I$(BASEDIR)
-I$(LUADIR) -I. -DGUI_WX
-LDFLAGS = `wx-config --libs` -lz
+LDFLAGS = `wx-config --libs` -lz -ldl

 OBJDIR = ObjFiles
 BASEH = $(BASEDIR)/utils.h $(BASEDIR)/lexicon.h $(BASEDIR)/grep.h
$(BASEDIR)/find.h



-- 


Best regards,
Boris Nagaev