| 
     
      
      
      From: Ralf E. <fl...@t-...> - 2006-01-21 10:10:47
      
     
   | 
hey Keith, seems like this turns to a never ending story. I´ve tried your suggestions today. The result is not like expected. What I did: 1) I first checked the search-path of my i586-mingw32msvc-gcc Compiler. In none of the paths there is anywhere the native libfl.a. 2) I´ve created a new dir on: /hd/programming/win32libs/lib and /hd/programming/win32libs/include 3) I´ve copied the libfl.a from the GnuWin32 project to ../lib and the FlexLexer.h to ../include 4) then I called my cross-compiler with the following: "i586-mingw32msvc-gcc -L/hd/programming/win32libs/lib -lfl -o lexan.exe lex.yy.c lexantest.c" in order to tell my cross-compiler where it can find the Win32-Lib. The result I get then is almost the same as it was before: /tmp/ccABhXHO.o:lexantest.c:(.text+0x0): multiple definition of `_main' /hd/programming/win32libs/lib/libfl.a(libmain.o):libmain.c:(.text+0x0): first defined here /tmp/cctdKjz1.o:lex.yy.c:(.text+0x417): undefined reference to `_yywrap' /tmp/cctdKjz1.o:lex.yy.c:(.text+0xd42): undefined reference to `_yywrap' collect2: ld returned 1 exit status Does this make any sense ? Or are there any mistakes I made in realising what you and Igor have suggested to me yesterday? Thank you, Ralf  |