Building a plug-in DLL using VS 2010 Express

Building and customizing Audacity from the source code.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Ppedro
Posts: 2
Joined: Wed Nov 09, 2011 8:08 am
Operating System: Please select

Building a plug-in DLL using VS 2010 Express

Post by Ppedro » Wed Nov 09, 2011 8:32 am

Dear Forum,

I have build an DLL from Richard Furse's "sine.cpp" out of the Computer Music Toolkit - CMT. I've been using Visual Studio 2010 Express.
After a very few modifications (casting math.pow) I could build the DLL. It's a WIN32 DLL and my machine is a Windows 7 64-bit.
Unfortunately my plug-in DLL is not detected by Audacity, while other plug-ins are found. So it's not a question of a wrong directory but a question of compiler/linker settings.
Does anybody have a suggestion?

Thanks,
Peter

Edgar
Forum Crew
Posts: 2043
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 10

Re: Building a plug-in DLL using VS 2010 Express

Post by Edgar » Wed Nov 09, 2011 10:52 pm

Audacity itself will not compile with VS2010 and I could not get it to recognize the wxWidgets DLLs when I built them with VS2010. You might need to install MS VC++ 2008 and build with that.

Ppedro
Posts: 2
Joined: Wed Nov 09, 2011 8:08 am
Operating System: Please select

Re: Building a plug-in DLL using VS 2010 Express

Post by Ppedro » Thu Nov 10, 2011 12:13 pm

I've read about this VS2010 issue, but I can compile the plug-in easily with VS2010 while Audacity itself cannot be compiled.
I would build the DLL with VC++ 2008 if I had downloaded it...
Does anybody know if VS2010 DLLs have general compatibility problems with VC++ 2008 applications?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Building a plug-in DLL using VS 2010 Express

Post by Gale Andrews » Mon Nov 14, 2011 1:05 am

Ppedro wrote:I've read about this VS2010 issue, but I can compile the plug-in easily with VS2010 while Audacity itself cannot be compiled.
I would build the DLL with VC++ 2008 if I had downloaded it...
Does anybody know if VS2010 DLLs have general compatibility problems with VC++ 2008 applications?
From what I understand, a dll compiled in VS 2010 wouldn't run in pre-XP SP2 anyway which isn't good for others, unless you set VS2010 to use the vc90 toolset:
http://stackoverflow.com/questions/2664 ... ndows-2000

So you could try that and see if it also cures the Audacity problem, but I am not sure it will given you are on Win 7. Exactly what format is this plug-in - VST, C++?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply