I have a project in pure C - st usb library and I need to migrate it to c++ and change same structures into classes. I removed all c++ "protections" like:
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
I changed all files extensions from .c
to .cpp
(except HAL library).
I realized that c++ .hex
is 7kB smaller then c .hex
. When I looked into .map
file I saw that many functions are missing. I thought that static
functions caused that, but removing static
key word didn't help. Does anyone have idea what could cause that some functions weren't compiled. When extensions are .c
everything is fine.