error C2011: 'VstKeyCode' : 'enum' type redefinition with VST2 wrapper | Synth Book Questions | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
error C2011: 'VstKeyCode' : 'enum' type redefinition with VST2 wrapper
September 8, 2015 - 8:01 pm
Member Since: January 29, 2017
Forum Posts: 689
sp_UserOfflineSmall Offline

If you get this error message when using the VST2 wrapper in a VST3 project, it is because of the location of the #include for your wrapper code. The #include for the wrapper file must occur before the #include for your vstcontroller object. The reason is that the wrapper include must PRECEDE any #include that references vsteditcontroller, which is #include "vstgui/plugin-bindings/vst3editor.h" which occurs in your controller's.h file.

See the information here for more details:

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

Skyler: 48

StevieD: 46

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

Nickolai: 43

clau_ste: 39

jeanlecode: 37

Member Stats:

Guest Posters: 1

Members: 768

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 842

Posts: 3347

Moderators: W Pirkle: 689