Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with main3a.cpp and main4.cpp #15

Open
ShuhabA opened this issue Jun 23, 2021 · 3 comments
Open

Errors with main3a.cpp and main4.cpp #15

ShuhabA opened this issue Jun 23, 2021 · 3 comments

Comments

@ShuhabA
Copy link

ShuhabA commented Jun 23, 2021

Severity Code Description Project File Line Suppression State
Error C2664 'void olcNoiseMaker::SetUserFunction(double (__cdecl *)(double))': cannot convert argument 1 from 'double (__cdecl *)(int,double)' to 'double (__cdecl *)(double)' Prime Synth C:\Users\A12st\Downloads\synth-master\synth-master\main4.cpp 559

I'm getting this error when I compile the code in Visual Studio 2019 Community Edition. This is happening with the main3a.cpp and main4.cpp files.

@chrisdcs
Copy link

chrisdcs commented Aug 11, 2021

I got this.

In a project, we can only have one main*.cpp.

For example, if we have main1.cpp or main2.cpp, only include olcNoiseMaker.h.

If we have main3a.cpp or main4.cpp, only include olcNoiseMaker_VIDEO_PARTS_3_4.h

Select the debug version to be x86, then it should work.

@ShuhabA
Copy link
Author

ShuhabA commented Aug 12, 2021 via email

@bert8128
Copy link

bert8128 commented Feb 6, 2022

Problem 1 - There is a different main cpp for each of the episodes. So only include one of them in the project, not all 4. Problem 2 - The 64 bit build has a compilation error, so just use a 32 bit build
Problem 3 - main3a and main4 require a different version of olcNoiseMaker.h. So change the name of olcNoiseMaker.h to olcNoiseMaker_VIDEO_PARTS_3_4_VIDEO_PARTS_1_2.h and rename olcNoiseMaker_VIDEO_PARTS_3_4.h to olcNoiseMaker.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants