From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-14-2016 01:50 AM
I have a question below:
One header file atf2_general.h located in C:\pool\l2_idrv\headers folder, and my source code located in C:\atf\l2_idrv folder( atuomatically copy my.lib, my.dll to pool folder by post-build actions batch file)
assupmtion: One project my.prj include 4 *.c files(1.c, 2.c, 3.c,and 4.c), each *.c NEED atf2_general.h support, i do not want to include this head file in the begining of each *.c file.
and this my.prj also do not want to add this head file in project , i try add" C:\pool\l2_idrv\headers " in Options\Enviroment\Include Paths\applied to all project
but still failed to compile? what is best way for such problem
Thanks a lot!
05-14-2016 06:04 PM
If the header file is not included in the source files you are likely to get compile errors in each line referencing objects defined in the header file! While it's not needed to add the header file to the project, it'mandatory to include it in every source file using its items. The only way I see to avoid including it directly is to have it included in a general header file together with other general use defines and includes, and include that header only in the source files.
05-15-2016 08:05 PM