Sunday, October 30, 2011

linking libf2c.so and undefined reference to `MAIN__'

The problem is that f2c wants to link to the MAIN__ function which is

the "fortran main". Apparently it is just a dummy function call. And
the fix is quite simple:

Add "int  MAIN__( ) {  return 0; }" somewhere is the sources.

Or pass the option -u MAIN__ to the linker.

The attached patch correct the problem.

Friday, October 28, 2011

Friday, October 21, 2011

admin in win7

net user administrator /active:yes
net user administrator /active:no
to enable/disable admin in win7

Tuesday, October 18, 2011

cmake with cuda

 cmake .. -DCUDA_TOOLKIT_INCLUDE:=/usr/include/cuda/ -DCUDA_SDK_ROOT_DIR=/usr/share/cuda-sdk/ -DCUDA_NVCC_FLAGS=--compiler-bindir=/opt/gcc-4.4

歸去來兮

好久沒瞎寫點東西。現在算是又回來了。
本來想隨便twitter一下就好了,不必大動干戈。也許每天推推能把牆推倒。但twitter不給機會。寫錯個字都改不了。至少我沒找到簡單的方法。懶得查幫助了。還是blog吧。人老了,新的事物往往接受不來。