思元的開發筆記

關於 web service, unity, blogger 等軟體工程筆記

顯示具有 C-plus-plus 標籤的文章。 顯示所有文章

Go with Cgo 靜態連結 (static linking) 函式庫建置範例與筆記

延續上一篇 Go with Cgo 動態連結 的文章,由於部署 (deployment) 需求的改變,合作廠商 IT 運維技術人員 (Ops) 對於 Linux 的不熟悉,期望部署不需要管理那些動態連結 (dynamic linking) 函式庫,因而開始研究改用靜態連...

Go with Cgo 動態連結 (dynamic linking) 函式庫建置範例與筆記

在 上一篇文章 中,已經知道如何在 Windows 中,利用 gcc/g++ 建置動態連結函式庫 (dynamic-link library),本篇文章筆記如何在 Go (Golang) 中,利用 cgo 來動態連結函式庫,呼叫使用其函式。

在 Windows 環境建置動態連結函式庫 (Dynamic-link library),使用 MinGW gcc/g++ 以及 CodeBlock

整理在 Windows 環境下,編譯 C/C++ 產出動態連結函式庫 (Dynamic-link library) 給其他專案使用的筆記。 大部分的情況下,在 Windows 作業系統中,通常都使用 Microsoft 所推出的 Vistual Studio IDE 來...

C++ Library callback using C# in Unity and cross thread call

由社團文章討論所做的測試,主要是有人詢問,在外部 C++ library callback 函數中,呼叫 StartCoroutine 而導致錯誤訊息 StartCoroutine can only be called from the main thread。這明顯是一個跨執...

Global variables across share objects problem (Dynamic Linking Library in UNIX-like system)

We had a program which link multiple share objects, and those objects exported same different same functions but same name global variables...

C/C++ Size of LONG Integer varies between os and architecture

This is note about the size of ""long" integer varies between different OS and architecture. We deployed our KISS random numb...

Compile C/C++ share object in Linux using GCC and G++ (for dynamic linking library)

這是一份為了在 Linux 佈署專案的筆記,內容使用虛擬機器來建置 Linux 環境,將 C/C++ 的專案程式碼,透過 Code::Blocks IDE,使用 GCC G++ 來編譯 Share objects (*.so files)。 Linux 環境 ...