error: “Oh no! Something has gone wrong.”


If the above message suddenly comes up in your screen after CUDA driver installation in RedHat/CentOS/Fedora OS, don’t be panic. This is happened because of xorg-x11-drv-nvidia-gl package, which is part of cuda-drivers dependencies. I got this experience in my laptop that has Intel + NVIDIA GPUs. I guess it’s because the Intel GPU is the primary GPU in my laptop, and for RedHat/CentOS/Fedora there’s no a kind of official Optimus technology, like in Windows.

Workaround Solution: Continue reading

“workspace in use or cannot be created” in eclipse or nvidia nsight

– remove .lock file in workspace’s metadata folder.
rm {YourWorkspaceDir}/.metadata/.lock

– find out the RECENT_WORKSPACES attribute
cd ~/.eclipse
grep -r "RECENT_WORKSPACES" *

– once you got the file where the RECENT_WORKSPACES attribute exists, edit that file by removing the RECENT_WORKSPACES line.

error Visual Studio 2005 dan gl.h

Pesan error yang mungkin muncul ketika menggunakan OpenGL pada Visual Studio 2005 :

1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeGL/gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';'

Untuk mengatasinya tambahkan

#include 

sebelum memanggil #include <GL/gl.h>