Note that there are some explanatory texts on larger screens.

plurals
  1. POMicrosoft Visual Studio Not Linking My CUDA .obj Files Into My .lib
    primarykey
    data
    text
    <p>So, we recently upgraded our project to be using Microsoft Visual Studio 2010 and we are having some issues with our CUDA projects.</p> <p>I do have 2008 installed, and I am using the vc90 toolkit, and the files appear to be compiling (their associate .obj files are created). This is in the a project which creates a .lib as its output. The .lib is then linked against in another project which produces linker errors because one of files in the library (Matrix.obj) can't find one of the symbols that should be in CUDAMatrix.obj.</p> <p>I ran dumpbin /SYMBOLS on CUDAMatrix.obj, and the symbol is in there, is not UNDEF, and is External. I ran dumpbin on our .lib, and the symbol does not appear to be inside it. I turned up the verbosity of the build of the library and the list of .obj files after:</p> <pre><code>c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\Lib.exe </code></pre> <p>Does not appear to contain CUDAMatrix.obj.</p> <p>To sum up, how does the Visual Studio project know what .obj files to stick into the .lib that is being made? I couldn't find the actual list anywhere, and the librarian submenu didn't seem to help.</p> <p>Or least conveniently, is there an external tool (similar to 'ar' on linux) that I can use to merge the .obj it produced with the library? I thought maybe the /MERGE switch on lib.exe would do it, but I kept getting a .dll not found error when I tried to run that from the command line.</p> <p>P.S. The dumpbins also confirmed that both the .lib and the .objs were x86 targeted.</p> <p>P.P.S. Adding them as "additional dependencies" in the librarian seems to work, but isn't there any good way to make this happen automatically? They are, after all, part of the project.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload