Creating a C Project
By default, a new PROS project contains C++ source files and the C++ API. If you would prefer to program in C instead, change the extension of the source files (prior to PROS kernel 3.2.0: initialize.cpp
, autonomous.cpp
, and opcontrol.cpp
; after PROS kernel 3.2.0: main.cpp
) to .c
.
This will compile your PROS project as C code, and will give you access to the C API.
If you're interested in combining C and C++, you should read through the Combining C and C++. Please note that it is typically a complicated matter to combine the two, and rarely a good idea.