COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 10-20-2016, 12:23 AM   #1
Guod3
Human being with feelings
 
Guod3's Avatar
 
Join Date: Jan 2008
Posts: 506
Default Trouble linking RtMidi with my wdl-ol plugin (VS2015)

According to the RtMidi tutorial it is necessary to provide a preprocessor definition
and library (__WINDOWS_MM__ and winmm.lib on my platform).
Where is the correct place to put __WINDOWS_MM__ ? Naturally I don't want to add a #define to Rtmidi.h.
I found a few versions of winmm.lib on my machine and placed the path (of one of them) in Linker Additional Library Directories.
The standalone app of the plugin uses RtMidi but I can't seem to reverse engineer how the project is set up.
Thanks for any help.
Guod3 is offline   Reply With Quote
Old 10-23-2016, 02:27 AM   #2
Guod3
Human being with feelings
 
Guod3's Avatar
 
Join Date: Jan 2008
Posts: 506
Default

Found it! (...eventually)

The step which killed the LNK2019 errors was the setting:
Linker, Input, Additional Dependancies: adding the symbol $(APP_LIBS)
which is defined in ProjectName.props and contains reference to the library winmm.lib which is needed by RtMidi.

Oh, and __WINDOWS_MM__ was added to <VST_DEFS> in ProjectName.props
Guod3 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.