Saturday, December 27, 2014

C++ Builder glut.h error: One set of overloaded "c" functions

[Reference] https://www.opengl.org/discussion_boards/showthread.php/155277-Borland-glut-h-error-One-set-of-overloaded-c-functions

1) Add the following lines :

#ifdef __BORLANDC__ //ERIC CHANGE
#include <stdlib.h> //bring exit into global scope
#endif //ERIC CHANGE

Just above the lines:
#endif /* _WIN32 */

#include <GL/gl.h>
#include <GL/glu.h>
Around line 133 in glut.h(atleast in the one I have)

2) Then change line 146 in glut.h or the line that declares the extern _CRTIMP void __cdecl exit(int);
with the following:

#ifndef __BORLANDC__ //ERIC CHANGE
//in borland this function is not extern C.
//stdlib.h is included somewhere above 
extern _CRTIMP void __cdecl exit(int);
#endif //__BORLAND_C //ERIC CHANGE

libTiff 讀取 Photoshop 建立含有 image pyramid 的 tiff 檔 出現 Access violation at ....'CC32120MT.DLL'....

Note:
在 VCL form application 會出現問題.
在 Console 程式沒有問題.

原因, 以乎與 VCL 有關, 待查

[Qt] 執行檔需要哪些 Dll?

 1. 使用 Qt  的 windeployqt.exe 工具 (在 C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\)。   a. 把執行檔 myProgram.exe 放在某個資料夾。   b. 在檔案總管這個資料夾按 Shift 和滑鼠右鍵,開啟 Po...