| 21 | | It comes to our attention that while compiling the sample app, |
| 22 | | the linker tries to link both the debug and release libraries, and thus causing the following errors: |
| 23 | | {{{ |
| 24 | | LIBCMTD.lib(dbgheap.obj) : error LNK2005: __heap_alloc already defined in LIBCMT.lib(malloc.obj) |
| 25 | | LIBCMTD.lib(dbgheap.obj) : error LNK2005: __recalloc already defined in LIBCMT.lib(recalloc.obj) |
| 26 | | LIBCMTD.lib(dbgheap.obj) : error LNK2005: __msize already defined in LIBCMT.lib(msize.obj) |
| 27 | | ... |
| 28 | | }}} |
| 29 | | One solution to this problem is to set the Hybrid Cuda/C++ Runtime Library to "Multi-Threaded Debug (/MTd)". |
| 30 | | Do so by right click on the project. |
| 31 | | Set "Properties -> Configuration Properties -> Cuda Build Rule v3.0.14 -> Hybrid CUDA/C++ Options -> Runtime Library" |
| 32 | | to "Multi-Threaded Debug (/MTd)". |