Compiling Again project with express c++ 2005

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi,

I tried to compile the again project (in the VST SDK) using Visual C++ 2005 and got the following message

c:\vstdevel\vstsdk2.3\source\again\againmain.cpp(33) : error C3874: return type of 'main' should be 'int' instead of 'AEffect *'
c:\vstdevel\vstsdk2.3\source\again\againmain.cpp(58) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory


I'm not strong a C++ programmer so can you please tell me how to overcome this problem?

Cheers
Thomas

Post

I donthave VC++2005 but I'll hazard to guess:

1: Change the name (main to myMain or something), and the corresponding export entry in the def file. There are other solutions too. Search this forum and you will find.

2: The windows sdk is not in your include path. Did it come with the compiler? Otherwise you'll need to download it separatly. Then add the SDK lib and include folders in the project settings.

Post

This is about codeblocks, but the post I made about half way down applies I think:
http://www.kvraudio.com/forum/viewtopic.php?t=97144

Post

You can also change your main to return void*, and it'll build fine.


As for your other problem, you do indeed need to download the PSDK. Grab it here.

Post Reply

Return to “DSP and Plugin Development”