memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.15k stars 771 forks source link

Undefined references in Visual Studio #616

Open FlightBlaze opened 3 years ago

FlightBlaze commented 3 years ago

Visual Studio 2019 with CMake

Steps to reproduce the error:

  1. Download nanovg sources and premake
  2. Generate the Visual Studio solution using premake
  3. Open solution and build nanovg. Successful!

image

  1. Write a script in your CMakeLists.txt as shown below

image

  1. Run your project solution

image

mulle-nat commented 3 years ago

I am surely no expert here, but the last warning in the output would be my first guess, as to what is going wrong.