我试图让openmp在我的程序中运行Mavericks,但是当我尝试使用标志进行编译时,-fopenmp
我得到以下错误:
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我正在运行的命令是:
gcc myProgram.cpp -fopenmp -o myProgram
Run Code Online (Sandbox Code Playgroud)
此外,当我运行gcc时,我得到了Clang警告,我觉得这很奇怪.并且查看/ usr/bin/gcc它似乎没有链接到Clang.
有关如何修复我的Clang错误并获得openmp编译的任何建议?
我得到的错误信息是
System.Windows.ni.dll中出现'System.Windows.Markup.XamlParseException'类型的第一次机会异常
调用堆栈追溯到这段代码.
public MainPage()
{
**InitializeComponent();**
this.Init();
// Set the data context of the listbox control to the sample data
DataContext = App.ViewModel;
this.Loaded += new RoutedEventHandler(MainPage_Loaded);
}
Run Code Online (Sandbox Code Playgroud)
和InitializeComponent()行上的错误.
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/App;component/MainPage.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.SSIDTextBox = ((System.Windows.Controls.TextBox)(this.FindName("SSIDTextBox")));
this.PasswordTextBox = ((System.Windows.Controls.TextBox)(this.FindName("PasswordTextBox")));
this.Auth_ListPicker = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("Auth_ListPicker")));
this.SaveButton = ((System.Windows.Controls.Button)(this.FindName("SaveButton")));
this.GenerateButton = ((System.Windows.Controls.Button)(this.FindName("GenerateButton")));
this.QRImage = ((System.Windows.Controls.Image)(this.FindName("QRImage")));
this.Profiles= ((System.Windows.Controls.ListBox)(this.FindName("Profiles")));
}
}
Run Code Online (Sandbox Code Playgroud)
在将WP 7.1转换为WP8之前,我没有得到此异常.
任何帮助,将不胜感激.
更新:我添加了整个异常消息,是否有助于查明问题?
'TaskHost.exe'(CLR C:\ windows\system32\coreclr.dll:DefaultDomain):已加载'C:\ windows\system32\mscorlib.ni.dll'.跳过加载符号.模块已经过优化,调试器选项"Just …