tool to create a single header? or a single nonstandard header?
I want to post code from some projects, the problem is i have a lot of headers and i dont want to distribute ALL of them nor copy paste what i need by hand.
Is there a program that will look at cpp file(s) and generate a header for it? if its a straight recursive copy/paste that would be fine.
<SkilletAudio> Your framerate proves your lack of manhood
Yep, it's called a compiler [grin]
Seriously most compilers will have some sort of switch that allows you to generate a file with all the includes expanded. In msvc, you want the /EP and /C switches which generate the preprocessed file without line numbers and including comments.
Be warned this includes all files included by the file, so if you're including windows.h or something similar the file will be huge.
Seriously most compilers will have some sort of switch that allows you to generate a file with all the includes expanded. In msvc, you want the /EP and /C switches which generate the preprocessed file without line numbers and including comments.
Be warned this includes all files included by the file, so if you're including windows.h or something similar the file will be huge.
if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement