This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

c++ support on STM32F2xxx

Hi,

I'm develooping on STM32F2xxx chip with an evaluation board (provided by ST) under uvision 4 and actually i failed when i trying to call some code written in C++ language. In my project, i use the standard library (not the microlib) and i wonder what i could change in my startup to call the main() function in a .cpp file?
If you have any idea or suggestion? it could help me?

Regards

Parents
  • You should not have to change anything. main() should still use the C calling convention, and the tools should manage to make sure that any extra library init calls are performed before reaching main() - besides C++ library initialization, a C++ program must also construct all global objects before main() is entered.

Reply
  • You should not have to change anything. main() should still use the C calling convention, and the tools should manage to make sure that any extra library init calls are performed before reaching main() - besides C++ library initialization, a C++ program must also construct all global objects before main() is entered.

Children
No data