Re: Using the MDF with C++
Posted: Wed Feb 06, 2019 7:04 am
Hi
The get_atarted file I left as a .c file. All I did was rename the app-main function so I could move it to Lee.cpp to prove that the main could exist in a .CPP file. The class doesn't wrap the get_started funxtions I included it to prove that you can define classes there and therefore use c++.
In theory, if you can get this to compile, you can now do whatever c++ you want in the lee.cpp files even calling the functions from get-started e.g. call app-main1 from app-main1 in lee.cpp to run the example.
I built it on Ubuntu with compiler version 5.2.0 and crosstool 1.22.0-73 - it displays both when you run make from the command line.
The get_atarted file I left as a .c file. All I did was rename the app-main function so I could move it to Lee.cpp to prove that the main could exist in a .CPP file. The class doesn't wrap the get_started funxtions I included it to prove that you can define classes there and therefore use c++.
In theory, if you can get this to compile, you can now do whatever c++ you want in the lee.cpp files even calling the functions from get-started e.g. call app-main1 from app-main1 in lee.cpp to run the example.
I built it on Ubuntu with compiler version 5.2.0 and crosstool 1.22.0-73 - it displays both when you run make from the command line.