lazarus 编译的程序在linux运行时出现如果出现这个错误提示:Failed to create OS basic event with name "",建议检查一下project是否开启开线程,如没就添加红色代码就可以。
program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}//加上这行 cthreads, //加上这行 {$ENDIF} //加上这行 Interfaces, // this includes the LCL widgetset Forms { add your units here }, Unit1, rtcSDK_FPC; {$R *.res} begin Application.Scaled:=True; Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end.
标签:name,Application,create,basic,Failed,linux,OS,event From: https://www.cnblogs.com/qiufeng2014/p/17093113.html