modlfo / VultModules

A set of modules written in Vult for VCVRack
Other
131 stars 18 forks source link

gsamplerate compilation error in Linux #8

Closed Malifick closed 6 years ago

Malifick commented 6 years ago

src/VultModules.cpp: In function ‘float getSampleRate()’: src/VultModules.cpp:19:11: error: ‘gSampleRate’ was not declared in this scope return gSampleRate; ^~~ src/VultModules.cpp:19:11: note: suggested alternative: ‘getSampleRate’ return gSampleRate; ^~~

modlfo commented 6 years ago

This is the same problem as #6 The Vult modules compile against the tag/v0.4.0 which is the last release. You can apply the fix shown in #6 to compile for a newer version.

Malifick commented 6 years ago

Ah thanks

Malifick commented 6 years ago

Ah.. one question , where do I put this code into ?

modlfo commented 6 years ago

VultModules.cpp line 17

https://github.com/modlfo/VultModules/blob/master/src/VultModules.cpp#L17

Malifick commented 6 years ago

Many thanks

Malifick commented 6 years ago

getting error now src/VultModules.cpp:34:1: error: stray ‘@’ in program @@ -3,7 +3,7 @@ ^ src/VultModules.cpp:34:2: error: stray ‘@’ in program @@ -3,7 +3,7 @@ ^ src/VultModules.cpp:34:14: error: stray ‘@’ in program @@ -3,7 +3,7 @@ ^ src/VultModules.cpp:34:15: error: stray ‘@’ in program @@ -3,7 +3,7 @@ ^ src/VultModules.cpp:32:1: error: expected unqualified-id before ‘--’ token --- a/src/VultModules.cpp ^~ src/VultModules.cpp: In function ‘float getSampleRate()’: src/VultModules.cpp:45:11: error: ‘gSampleRate’ was not declared in this scope return gSampleRate; ^~~ src/VultModules.cpp:45:11: note: suggested alternative: ‘getSampleRate’ return gSampleRate; ^~~ getSampleRate src/VultModules.cpp: At global scope: src/VultModules.cpp:48:9: error: redefinition of ‘rack::Plugin plugin’ Plugin plugin; ^~ src/VultModules.cpp:42:10: note: ‘rack::Plugin plugin’ previously declared here Plugin plugin; ^~ make: *** [../../compile.mk:55: build/src/VultModules.cpp.o] Error 1

modlfo commented 6 years ago

Later I will try to update the code to a newer version of Rack. Maybe the API has changed even more.

modlfo commented 6 years ago

After pull request #9 this builds against master