flex 2.5.35

"Tristan Wibberley" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Hi,

I'm trying to port flex 2.5.35 to submit a patch to update gnuwin32
(unltimately to port xxdiff - which uses the bison bridge rule and flex
2.5.4a is too old). I was hoping to get the benefit of the other gnuwin32
users' experience when doing this.

Now I'm guessing that it'll be easiest to convert the multi-process filter
feature to use either native threads or GNU pth, but I also have some other
problems:

tables.o(.text+0x281): In function `yytbl_write32':
c:/flex-2.5.35/tables.c:287: undefined reference to `htonl'
tables.o(.text+0x2e2): In function `yytbl_write16':
c:/flex-2.5.35/tables.c:306: undefined reference to `htons'

These are available in MinGW but I can't figure out how to link them
(-lwsock32 doesn't work because the symbol has different mangling, it
seems). Any suggestions?

filter.o(.text+0x947): In function `filter_fix_linedirs':
c:/flex-2.5.35/filter.c:398: undefined reference to `_imp__regexec'
filter.o(.text+0x993):c:/flex-2.5.35/filter.c:347: undefined reference to
`_imp__regexec'
regex.o(.text+0x31): In function `flex_regcomp':
c:/flex-2.5.35/regex.c:56: undefined reference to `_imp__regcomp'
regex.o(.text+0x6c):c:/flex-2.5.35/regex.c:61: undefined reference to
`_imp__regerror'
collect2: ld returned 1 exit status

Now this must be a gnuwin32 issue - I suppose I'm not setting linker paths
correctly. How do you link to the regex library? I've copied to MinGW/lib
the contents of gnuwin32/lib for each file that doesn't exist in MinGW/lib
already.

-- 
Tristan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
GnuWin32-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.