Compiling Again project with express c++ 2005
-
- KVRist
- Topic Starter
- 68 posts since 19 Oct, 2004
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
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
-
- KVRAF
- 1718 posts since 3 Sep, 2003
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.
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.
-
- KVRAF
- 1718 posts since 3 Sep, 2003
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
http://www.kvraudio.com/forum/viewtopic.php?t=97144