Can I use a C library in my corona app

I am developing a program for PC, I want the program to be able to create PDFs so I wanted to use luahpdf module

https://github.com/jung-kurt/luahpdf

But turns everytime I try to include the C library in my project corona searches for a lua file

require hpdf

searches for hpdf.lua

require hpdf.c

searches for c.lua in a hpdf folder

Does corona even support including a C library ? and if not then what are my options ? 

Yes,

You can write a plugin using C and use the native build features to include it in your project.

Alternately, you can submit the plugin to the marketplace ans then you and everyone else can use it when it is approved.

Start here:  

You can make C/C++ libraries usable by Corona by creating a plugin that lets you create a Lua to C/C++ interface. For Windows desktop builds, you will create a .dll file to include in your project that handles the C side of the equation. Building Windows desktop plugins include a bit more work than plugins for Android/iOS. You can look at this project which has a Windows plugin example in it:

https://github.com/coronalabs/plugins-sample-memoryBitmap

Rob

Yes,

You can write a plugin using C and use the native build features to include it in your project.

Alternately, you can submit the plugin to the marketplace ans then you and everyone else can use it when it is approved.

Start here:  

You can make C/C++ libraries usable by Corona by creating a plugin that lets you create a Lua to C/C++ interface. For Windows desktop builds, you will create a .dll file to include in your project that handles the C side of the equation. Building Windows desktop plugins include a bit more work than plugins for Android/iOS. You can look at this project which has a Windows plugin example in it:

https://github.com/coronalabs/plugins-sample-memoryBitmap

Rob