C++ 如何在mac中使用gcc链接到碳?
我在mac上开发了一个使用碳的应用程序 我的IDE是Code::Blocks(GCC编译器)。我的代码编译成功,但未链接C++ 如何在mac中使用gcc链接到碳?,c++,macos,macos-carbon,C++,Macos,Macos Carbon,我在mac上开发了一个使用碳的应用程序 我的IDE是Code::Blocks(GCC编译器)。我的代码编译成功,但未链接 #include <iostream> #include <Carbon/Carbon.h> using namespace std; int main() { //CGEventFlags flags = CGEventSourceFlagsState(1); while(true) { CGEventS
#include <iostream>
#include <Carbon/Carbon.h>
using namespace std;
int main()
{
//CGEventFlags flags = CGEventSourceFlagsState(1);
while(true)
{
CGEventSourceStateID eventSource = kCGEventSourceStateCombinedSessionState;
bool b = CGEventSourceKeyState(eventSource, kVK_Command) && CGEventSourceKeyState(eventSource, kVK_ANSI_Period);
if(b)
{
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
}
cout << "Hello world!" << endl;
return 0;
}
#包括
#包括
使用名称空间std;
int main()
{
//CGEventFlags flags=CGEventSourceFlagsState(1);
while(true)
{
CGEventSourceStateID eventSource=kCGEventSourceStateCombinedSessionState;
bool b=CGEventSourceKeyState(eventSource,kVK_命令)和&CGEventSourceKeyState(eventSource,kVK_周期);
如果(b)
{
根据互联网上的各种消息来源,gcc的一个简单的框架碳标志应该能起到作用
但无法验证这一点
似乎有点相似。根据互联网上的各种来源,gcc的一个简单的-framework Carbon
标志应该能起到作用
但无法验证这一点
看起来好像有点相似。
似乎包含了C++。现在,C++程序无法在GCC上编译Mac OS 10.10。任何工作都围绕着?@ MangDeLoF,这是不相关的,我不可能回答。请用比它更详细的问题来问一个新问题,或者寻找一个解决方案,包括C++中包含的C.E.E.。gram现在无法使用gcc在mac os 10.10上编译。有什么解决办法吗?@mangledorf,这两个问题都不相关,我也不可能回答。提出一个更详细的新问题和/或在别处寻找解决方案