From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Q:Create Multiple executables

Hello,

I am using LabWindows/CVI under Win NT4.0.
I would like to know if it is possible to create multiple executables from

one main project using a serie of command lines like:
gcc -Dtest1 -o -test1
gcc -Dtest1 -o -test1

So far I have a bench of c-test programs( .c , .lib,.dll) where each test
is in
a different project, and calls libraries and other c-files.
and where all the projects have the same GUI (.uir).

Therefore I would like to have ONE BIG poject (ie.MYTESTs.prj) which
contains the common gui.uir, a main.c all the c-test programs and libs.
In 'main.c' I will have the following:
#ifdef test1
#include test1.h
#include test1.c
#endif
#ifdef test2
#include test2.h
#include test2.c
etc...
where test1.h, test1.
c, test2.h , etc are the different test programs
that will be called at the compilation time and where the executables
will be created by using the command lines.
(gcc main.c -Dtest1 -o test1
gcc main.c -Dtest2 -o test2)

This would allow me to choose the test to run from my main project.
and could create the executable of the chosen test from the main project.

Is this possible ?
I would appreciate if anyone could help me with this or offer me
any suggestions.

cheers
Geraldine
0 Kudos
Message 1 of 1
(2,981 Views)