Adding external libraries

linker

#1

If I want to use external libraries, should I include them in a Visual Studio project solution afterwards, or should I include them in the Projucer when creating the project?

In my case specifically I got it to build with OpenNN in Visual Studio by modifying things within Visual Studio (lib directory, include directory, etc).

The app also ‘whacks out’ when I run the script written with openNN (the GUI gets all weird, although then it gets fine again)


#2

For Windows I prefer to use a pragma…

#if JUCE_WINDOWS
        #ifdef JUCE_DEBUG
            #pragma comment (lib, "sicuucd.lib")     // ICU Core Lib debug
            #pragma comment (lib, "sicudtd.lib")     // ICU Data Stub debug
        #else
            #pragma comment (lib, "sicuuc.lib")      // ICU Core Lib release
            #pragma comment (lib, "sicudt.lib")      // ICU Data Stub release
        #endif
#endif

Rail


#3

I add them in Projucer as I use that, but Rail’s comment is valid for either.