These docs are for v1.1. Click to read the latest docs for v1.4.

Linking to the Library

Linking on Windows / MSVC

In Visual Studio, go to Linker → General → Additional Library Directories in your project's properties and set one of the following:

For Win32 / x86 Platforms:

$(ULTRALIGHT_SDK_ROOT)/lib/win/x86/

OR

For x64 Platforms:

$(ULTRALIGHT_SDK_ROOT)/lib/win/x64/

Then, go to Linker → Input → Additional Dependencies and add the following:

Ultralight.lib
UltralightCore.lib
WebCore.lib
AppCore.lib

Note: AppCore.lib is optional, only link if you use the AppCore API headers..

Linking on Linux

First, copy the shared libraries in $(ULTRALIGHT_SDK_ROOT)/bin/linux to your OS's standard library directory.

Then, add the following to your Makefile's LDFLAGS:

-lUltralight -lUltralightCore -lWebCore -lAppCore

Note: -lAppCore is optional, only link if you use the AppCore API headers..

Linking on macOS

Within XCode, select your target and go to General → Linked Frameworks and Libraries and add the following:

libUltralightCore.dylib
libUltralight.dylib
libWebCore.dylib
libAppCore.dylib

Or alternatively, if you are building with a Makefile, add the following to your LDFLAGS:

-lUltralight -lUltralightCore -lWebCore -lAppCore

Note: AppCore is optional, only link if you use the AppCore API headers..