- The file that has the main function was indeed added to the Polyspace project (if you know which file has the main)? I understand you used polyspace-configure to generate a Polyspace project (or options file) from a Visual Studio project/solution. I just want to confirm that the file containing the main got added in this process.
- Your Visual Studio project has the regular main function that is just called main and not one of the Visual extensions of main like wWinMain? In which case, you have to use the option Main entry point.
Polyspace-Code-Prover: User Program Error: User should provide a main routine, use -main or -main-generator.
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    jeremy longstreet
 el 28 de Jul. de 2020
  
    
    
    
    
    Comentada: jeremy longstreet
 el 29 de Jul. de 2020
            When running Polyspace-Code-Prover, the log file results with:
"User Program Error: User should provide a main routine, use -main or -main-generator."
The project has a "main" function.  Not sure what this response means then...
0 comentarios
Respuesta aceptada
  Anirban
    
 el 28 de Jul. de 2020
        
      Editada: Anirban
    
 el 28 de Jul. de 2020
  
      Hi,
Could you confirm a couple of things:
7 comentarios
  Anirban
    
 el 29 de Jul. de 2020
				Sorry again. I forgot this was C++. 
Can you try -class-analyzer all -class-analyzer-calls unused? 
The -main-generator-calls is all that is needed in C. But in C++, it looks only at functions defined outside a class scope. See more about the options in -class-analyzer and -class-analyzer-calls.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Run Settings en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


