Header file-name as argument

Posted by Alphaneo on Stack Overflow See other posts from Stack Overflow or by Alphaneo
Published on 2009-10-16T06:05:18Z Indexed on 2010/05/03 3:08 UTC
Read the original article Hit count: 429

Objective: I have a list of header files (about 50 of them), And each header-file has few arrays with constant elements. I need to write a program to count the elements of the array. And create some other form of output (which will be used by the hardware group).

My solution: I included all the 50 odd files and wrote an application. And then I dumped all the elements of the array into the specified format.

My environment: Visual Studio V6, Windows XP

My problem: Each time there is a new set of Header files, I am now changing the VC++ project settings to point to the new set of header files, and then rebuild.

My question:

A bit in-sane though,

  • Is there any way to mention the header from some command line arguments or something?
  • I just want to avoid re-compiling the source every time...

© Stack Overflow or respective owner

Related posts about header-files

Related posts about c