March 22nd, 2011, 09:46 AM
Setting dependencies to compile generated .c files
Wow - long time since using visual studio and my brain is incredibly rusty!
So... I have a VC++ project - it's all C++, except for a couple of .c files generated by flex and bison (I got the flexbison.rules file from Microsoft: http://msdn.microsoft.com/en-us/libr...ustombr_topic3).
How do I tell Visual Studio (2008), that the .c files are part of the project and must be compiled so that the linker can link them to produce the .exe? Of course I could add the to the source file section, but that doesn't seem quite right somehow, as they are generated anew each time the .y and .l files (the flex and bison sources) are modified.
Thanks in advance
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!