lvgl / lv_port_pc_visual_studio

Visual Studio projects for LVGL embedded graphics library. Recommended on Windows. Linux support with Wayland is work in progress.
MIT License
552 stars 282 forks source link

VS2019 Error C2664 copy example code to main() #41

Closed txp666 closed 2 years ago

txp666 commented 2 years ago

Hello when i copy example code to main() you can see this : image

txp666 commented 2 years ago

image i have to do this but why the code at example.c can run? thank u

MouriNaruto commented 2 years ago

@txp666

Because C and C++ are different. (The 'main' function is in the C++ source file, and LVGL examples are C source files.)

Kenji Mouri

txp666 commented 2 years ago

thanks!