Van: "Tristan Wibberley"
Datum: zaterdag 6 september 2008 5:07 nm

> 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?
>
You'll have to include windows.h or winsock.h. This may lead to some 
conflicts with other definitions used by flex, e..g. CHAR; either change 
these, e.g. to FLEX_CHAR, or else declare only htons and htonl, by copying 
them from winsock.h and resolving any #defines used there.

> 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.

If you're using the regex library from Gnuwin32, then add -lregex to the 
LIBS rule in the Makefile.


Kees Zeelenberg
 


-------------------------------------------------------------------------
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
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to