Wiz-IO / platform-quectel

Quectel development platform for PlatformIO
98 stars 42 forks source link

Cannot compile Opencpu C++ project #20

Closed ASL07 closed 4 years ago

ASL07 commented 4 years ago

Hi,

I am having trouble compiling a c++ project

I created a pio project with this platformio.ini:

[env:bc66]
platform = quectel
board = bc66
framework = opencpu

When I compile using "pio run" , a new main.c file is created. As mentioned here https://github.com/Wiz-IO/platform-quectel/wiki/SDK-BC66

Create New OpenCPU Project, PIO will make basic C template... Rename main.c to main.cpp

I have renamed main.c to main.cpp

When I try to compile again, a new main.c file is created How do I use opencpu framework and c++?

Thanks for your help

Wiz-IO commented 4 years ago

Hi Please, read the first line https://github.com/Wiz-IO/platform-quectel/wiki/SDK-BC66#new-version-comming-soon

ASL07 commented 4 years ago

Do you mean this?

New version comming soon...

So, we have to wait for the new version?

Wiz-IO commented 4 years ago

mean: new version is not ready

ASL07 commented 4 years ago

So, with the current version, we can't compile cpp code? When is the new version going to be available? Thanks

Wiz-IO commented 4 years ago

current version not support "clear" cpp you can use Arduino as cpp

ASL07 commented 4 years ago

Ok I might stick with C or Arduino for the moment but it will be great if you could provide a timeline for the new version release. Maybe the docs should be updated to mention that c++ is not supported yet

ASL07 commented 4 years ago

Is this fixed in the latest published release?

Wiz-IO commented 4 years ago

C++? https://github.com/Wiz-IO/platformio-quectel-examples/blob/master/BC66_SDK/CPP/BC66_CPP_HELLO/src/main.cpp