LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"Multiply defined symbol" link error

Hi,
I need to access some controls from some modules in my application.
I have made and have attached a simple example to show you it:

These controls (checkbox controls) are defined at "Auxiliar.uir".
They have to be visible in "Panel.c".
My idea is to create an intermediary module ("Auxiliar_CTES.h") with arrays of this controls, that is included at .c modules that need it (Panel.c and Auxiliar.c).

When the project is linked, appears the following error:
Multiply defined symbol '_GENERALoptions' in modules 'Panel.c' and
'Auxiliar.c'.

Some ideas?

Thanks,
silmarba
0 Kudos
Message 1 of 2
(3,924 Views)
Look at the attached file: I have modified your project in order to work correctly.

The problem is that you can define a variable in a module included in more source files (and that variable is global to all those files) but you cannot assign a value to this variable in the same include file: you need to assign it in one (and one only) source file.
Try it.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(3,924 Views)