Compile Succesfull [but a detail...]

Posted by Axes on Sat 23 Apr 2005 07:04 AM — 3 posts, 17,298 views.

Chile #0
Well, i can compile the SMAUG.

I have a little problem.
I followed all the steps of this webpage (http://www.gammon.com.au/smaug/howtocompile.htm) and only had this error:
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lregex
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/nick/smaug/dist/src'
make: *** [all] Error 2

I read the solution:
... you may need to edit the file "Makefile" and comment-out the line regarding regexp, like this:

#Uncomment the line below if you are getting undefined re_exec errors
#NEED_REG = -lregex

but i think, it must say:
... you may need to edit the file "Makefile" and comment-out the line regarding regexp, like this:

#Uncomment the line below if you are getting undefined re_exec errors
/* #NEED_REG = -lregex */

because i did it, and i can finally compile sucessfully =)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Thank you againm, Nick Gammon
[and sorry for my english]


USA #1
What are you compiling under? Windows w/ Cygwin, Linux?
With Windows and Cygwin, Gammon has a page on that that will tell you everything you need to know about compiling it under Windows. As for Linux, I have no clue
USA #2
Just to point out something here....

In the Makefile when it says:

#Uncomment the line below if you are getting undefined re_exec errors
#NEED_REG = -lregex


I mean to remove the # symbol before the second line, thus making it look like this:

#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lregex