Linker error: Unresolved externals
Win flex-bison is a port Flex & Bison tools to the Windows platform
Brought to you by:
lexxmark
Hi Alex, thank you for the great work you shared with us!
When I follow your guide to "setup custom build rules" step-by-step, I run into linker errors.
(I also noticed to exclude all cpp files from using precompiled headers).
Look at the attached image.
I am using MS VisualStudio 2015 Community Edition with Win7 and working with a C++ project.
The sample files 'hello.y' and 'hello.l' are containing the sample you provided here: https://github.com/meyerd/flex-bison-example.
Have you got any idea what I am missing?
Cheers
Sebastian
Anonymous
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Last edit: Anonymous 2018-10-12
Hello Sebastian,
thank you for such positive estimation of my work.
The first two error lines tell us that you already have main function in your peoject. If you look at https://github.com/meyerd/flex-bison-example/blob/master/calc.y you will see that it defines its own main function. So you don't need to define your own.
The last errors is a common errors for flex/bison begginers.
You can see answer for example here http://stackoverflow.com/questions/1811125/undefined-reference-to-yywrap .
Short answer is just add "%option noyywrap" line to the beginning of the calc.l file.
Regards,
Alex
Last edit: Alex Zhondin 2016-09-09
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Hello Alex,
thanks for your response. I tried out your suggestions and it worked!
Cheers,
Sebastian
Last edit: Anonymous 2018-10-12
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Last edit: Anonymous 2018-10-12
Diff:
Diff:
Diff:
1
1
Diff:
1
1
1
1
1
1
1
1