Saturday, December 27, 2014

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


1) Add the following lines :

#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:

//in borland this function is not extern C.
//stdlib.h is included somewhere above 
extern _CRTIMP void __cdecl exit(int);

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

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

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

phpMyAdmin 無法存取 MariaDB 10 的解決方法