If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Linking error in visual studio C++ 2010

I am using MS visual studio 2010 for building a C project. My project uses flex and bison for parsing purpose. When I build the project there is no error in compiling but error in linking.
Following is the error:

proparse.obj:could not resolved the pro_lex referenced in the function pro_parse

Now,pro_lex is the function defined in the lex file. Lets say pro.lex. I used flex to generate the pro.c .And this function is defined and called as follows:

In prolex.c

#ifndef YY_ABCD
#define YY_ABCD 1

extern int pro_lex (void);

#define YY_ABCD int pro_lex (void)
#endif

YY_ABCD{ /*This is the main function which does all the lexical function
.....
........}

And the yacc file proparse.y generates two file using bison viz proparse.h and proparse.c . The functions pro_lex and pro_parse are defined in the proparse.c as follows.

Could you please let me know what can be the reason for it? I would also like to know if I can set some rules to link certain object files in the IDE. I think it is getting this error
becasue of the inability of linking. I would be glad if you could let me know if I can set some rules so that these two files can link.