skip to main | skip to sidebar

Linux Programming Note

Everything about Linux

2009年12月10日 星期四

extern "C" 的用法

C語言本身不支援 extern "C" 這個功能
如果使用的話,會出現compile error

作者王飛用一句話概括extern "C"這個宣告(declaration)的目的:
***實現C++與C及其他語言的混合programming***

[Reference]
http://blog.csdn.net/wfwd/archive/2006/05/30/763734.aspx
http://ytshen.wikidot.com/extern-c-usage
張貼者: Keinohrhasen 於 晚上7:06

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

Articles Listing

  • ►  2013 (2)
    • ►  4月 (1)
    • ►  3月 (1)
  • ►  2012 (9)
    • ►  12月 (1)
    • ►  11月 (3)
    • ►  3月 (5)
  • ►  2011 (2)
    • ►  12月 (1)
    • ►  6月 (1)
  • ►  2010 (31)
    • ►  10月 (1)
    • ►  8月 (1)
    • ►  7月 (2)
    • ►  6月 (4)
    • ►  5月 (2)
    • ►  4月 (8)
    • ►  3月 (11)
    • ►  2月 (1)
    • ►  1月 (1)
  • ▼  2009 (12)
    • ▼  12月 (12)
      • 基本密碼學
      • C 的不定參數 variable argument
      • 神奇的macro _INTSIZEOF( )
      • ioctl 函數
      • Linux 網路程式設計 -- 筆記
      • Linux程式設計 - 重點整理
      • extern "C" 的用法
      • C 的關鍵字 static 用法
      • C 的關鍵字 extern 用法
      • const char* p 與 char* const p 的差別
      • 一些make的語法筆記
      • 進階的 C struct 用法

Useful Links

  • The Linux Kernel API
  • GNU Manuals Online
  • GTK+ tutorial [zetcode.com]
  • Qt4 tutorial [zetcode.com]

標籤

C initialization struct