Hi there,
I’m a newbie on JUCE. I’m now writing the several code for my apps.
I want to use some carbon APIs in my code, so I put #include <Carbon/Carbon.h> in my header file.
As the result, I’ve got several errors as follows.
/Users/hayashi/src/JUCETest/CMainContent.cpp:159: error: variable or field ‘buttonClicked’ declared void
/Users/hayashi/src/JUCETest/CMainContent.cpp:159: error: ‘int CMainContent::buttonClicked’ is not a static member of ‘class CMainContent’
/Users/hayashi/src/JUCETest/CMainContent.cpp:159: error: ‘Button’ was not declared in this scope
/Users/hayashi/src/JUCETest/CMainContent.cpp:159: error: ‘pButton’ was not declared in this scope
/Users/hayashi/src/JUCETest/CMainContent.cpp:160: error: expected ‘,’ or ‘;’ before ‘{’ token
There is a class “Button” in JUCE but there’s also “Button()” function in Carbon API.
Are there any workaroung for this or did I mistake/misunderstand something?
Best regards,
Masanao Hayashi
Korg Inc.