Sorun:
NanoPB kullanan bir projeyi derlemeye çalıştığınızda şuna benzer bir uyarı görürsünüz:
nanopb_import_fix.txt
MyProtocol.proto:11:27: Option "(nanopb)" unknown. Ensure that your proto definition file imports the proto which defines the option.Çözüm
Uyarı mesajında belirtilen .proto dosyasının en üstüne, syntax = "proto3"; satırının hemen ardından aşağıdaki satırı ekleyin:
import_nanopb_proto_fix.proto
import "nanopb.proto";Bundan sonra hata kaybolmalıdır.
Check out similar posts by category:
NanoPB
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow