code generation force C90 usage
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Yohann GOYER
 il 23 Mar 2017
  
    
    
    
    
    Risposto: Nagini Venkata Krishna Kumari Palem
      
 il 29 Mar 2017
            Hello, I generate a code from my model.
The generated code use function like: fmodf and floorf that are part of math.h but in C99 version.
My compiler doesn't support these functions.
How can I Force Matlab to use C90 corresponding function (fmod and floor) instead?
I'm using version 2016b.
0 Commenti
Risposta accettata
  Nagini Venkata Krishna Kumari Palem
      
 il 29 Mar 2017
        In my understanding you are trying to generate code using C90 type. In general, MATLAB coder uses C89/C90 (ANSI) types by default.
You can explicitly change the 'Standard math library' property to 'C89/C90 (ANSI)' in Custom Code tab during code generation.
Take a look at the following documentation Change the Standard Math Library for detailed information.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Simulink Coder in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!