While compiling recived the error: Cpp file has already a Functionbody | Compiler Errors & Warnings | Forum

Avatar

Please consider registering
guest

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
While compiling recived the error: Cpp file has already a Functionbody
Avatar
Member
Members
August 5, 2016 - 9:23 pm
Member Since: August 5, 2016
Forum Posts: 4
sp_UserOfflineSmall Offline

Hi there

I'm completly new in plug-in programming.
The first project in the book "Desining Audio Effect Plug-Ins in C++", calles "Volume" i get an issue I'don't realy get.
It compiles the code generates it and then boom Cpp files already has a Functionbody ( translatet from german so maybe not 100 % accurate)

So I followed the instructions of the book and the code seems not to be a problem.

I use VB 2015 Community on Win 8.1 64 bit system.
The VB Cpp file is empty though there is a textfile which has code written in it.
I can open the Cpp textfile with VB but I get the same error while compiling

Any suggestions what I'm supposed to do?

Greetings

D-p

Avatar
Admin
August 12, 2016 - 4:24 am
Member Since: April 3, 2014
Forum Posts: 75
sp_UserOfflineSmall Offline

Hi D-p,

I can't really follow your description. Did you create the project with RackAFX or did you download a project from the website?
What do you mean by "Cpp textfile" and "VB Cpp" file?

Usually, RackAFX should start Visual Studio with the generated C++ project. This should just build fine.

You mention "VB" several times - what are you referring to? Did you install the correct Visual Studio version?

Regards
Tom

Avatar
Member
Members
August 12, 2016 - 4:49 am
Member Since: August 5, 2016
Forum Posts: 4
sp_UserOfflineSmall Offline

Hi Tom

I solved the problem. VB is Visual Basic. RackAFX creates an .h and a .cpp file for each project. Normaly you write your code
into the "name of the project".cpp file. By accident I modified the .h file instead.

This could never work.
I opened the .cpp file with the texteditor by accident and Windows saved it that way. Because of that
VB didn't opened the .cpp file and I started the .h file manualy.

Now everything is running fine^^

Best regards
D-p

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
4 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: 775

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 846

Posts: 3353

Moderators: W Pirkle: 690