linux getpid系统调用错误

时间:2016-01-16 04:02:40

标签: c++ linux kernel

尝试在linux-mint上运行c ++ prog时出现htis错误, $ make

public static void ScrollToControl( Page page, string clientId, bool alignToTop)
 {
     //NOTE: if there are more than one call on the page, first one will take preference
     //If we want that last will take  preference, change key from MethodBase.GetCurrentMethod().Name to anchorName
     //recommended in http://gnidesign.blogspot.com.au/2011/06/how-to-maintain-page-scroll-on-postback.html              
     String script = " window.scrollTo = function () { };" + Environment.NewLine;
     script += String.Format("document.getElementById('{0}').scrollIntoView({1});" , clientId, alignToTop.JSToString());
     page.ClientScript.RegisterStartupScript(TypeForClientScript(), MethodBase.GetCurrentMethod().Name, script, true );
     //return script;
 }
 public static string JSToString(this bool bValue)
 {
     return bValue.ToString().ToLower();
 }

提前感谢,解决此问题的步骤是什么。

1 个答案:

答案 0 :(得分:4)

来自getpid(3) man page

SYNOPSIS
       #include <unistd.h>