How to handle two static variable with same name in S function?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I have created a s-function which is having a multiple function present in multiple .c file.
e.g In A.c and B.c i am having static variable x in both A.c and B.c. So while compilation of s-function i am getting error that redefination of variable. Please tell how to handle this?.I dont want to change the code.
0 Commenti
Risposte (1)
Kaustubha Govind
il 7 Ago 2013
Seems like more of a C language question, rather than an S-function specific error. See: http://stackoverflow.com/questions/7215818/why-does-redefining-a-static-global-variable-give-a-compile-time-error-when-rede
0 Commenti
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!