# DLLMain issue

**URL:** <https://forum.juce.com/t/dllmain-issue/22201>\
**Category:** Audio Plugins\
**Created:** [May 2, 2017, 4:49pm UTC](https://forum.juce.com/t/dllmain-issue/22201 "2017-05-02T16:49:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [May 2, 2017, 4:49pm UTC](https://forum.juce.com/t/dllmain-issue/22201/1 "2017-05-02T16:49:45Z")

</div>

Looks like after the upgrade (Juce 5), I lost the ability to compile multiple plugins (AAX, VST) in one project on windows.

I get DLLMain already defined. I thought I was linking AAX and VST both staticly, but I’ve never understood the whole JucePlugin\_AAXLibs\_path thing … so I must be missing something.

Not sure … just noticed the error popped up, let me know what change is required.

Cheers  
Aaron

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [May 4, 2017, 4:02pm UTC](https://forum.juce.com/t/dllmain-issue/22201/2 "2017-05-04T16:02:40Z")

</div>

Did you re-compile the Projucer and re-introjuce your project?

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [May 6, 2017, 5:36pm UTC](https://forum.juce.com/t/dllmain-issue/22201/3 "2017-05-06T17:36:17Z")

</div>

I’m not actually using the ProJucer, since the project predates it, I’ve just never felt the need to rebuild it.

Was there some change though? I thought Juce wrapped / renamed the DLL main functions … kinda hazy on the details.

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [May 8, 2017, 11:28am UTC](https://forum.juce.com/t/dllmain-issue/22201/4 "2017-05-08T11:28:39Z")

</div>

Well the main entry points into the plug-ins were moved around a bit so that they are only compiled when the relevant target is compiled. Especially, RTAS needed quite some re-working.

---

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [May 9, 2017, 2:12am UTC](https://forum.juce.com/t/dllmain-issue/22201/5 "2017-05-09T02:12:50Z")

</div>

Yeah, makes sense. It makes it difficult to include them all in a single project with post build scripts for the different plugins … but no biggie.

I’ve been meaning to rebuild the projects with the projucer anyway, so I’ll do that and I’m sure it will clear up the issue.
