R
Roma.Sokolov
Hi,
May be this topic is out of the theme of this branch... Sorry if it is)
I have flex installed on my WinXP system.(downloaded from here:
http://gnuwin32.sourceforge.net/)
And, for example, i have my input to flex like this (the simplest one):
%%
username printf("hello");
Just from flex manual...
So i get lex.yy.c from this. There is some trouble with compiling
lex.yy.c with cl (MS VS2005). I use this:
cl lex.yy.c /link libfl.a
(Libfl.a is included in the GnuWin32 package.)
And it produces an error like that:
libfl.a(libmain.o): error LNK2019: unresolved external symbol ___main
referenced in function _main
lex.yy.exe: fatal error LNK1120: 1 unresolved externals
If anyone used microsoft compiler for such things, you will write your
experience...
Thanks par avance...
May be this topic is out of the theme of this branch... Sorry if it is)
I have flex installed on my WinXP system.(downloaded from here:
http://gnuwin32.sourceforge.net/)
And, for example, i have my input to flex like this (the simplest one):
%%
username printf("hello");
Just from flex manual...
So i get lex.yy.c from this. There is some trouble with compiling
lex.yy.c with cl (MS VS2005). I use this:
cl lex.yy.c /link libfl.a
(Libfl.a is included in the GnuWin32 package.)
And it produces an error like that:
libfl.a(libmain.o): error LNK2019: unresolved external symbol ___main
referenced in function _main
lex.yy.exe: fatal error LNK1120: 1 unresolved externals
If anyone used microsoft compiler for such things, you will write your
experience...
Thanks par avance...