linker - Locate linking location used by visual studio -


this seems common question, can't seem find answer:

is there way locate specific library vs uses link particular function @ link time?

i'm using visual studio build multi-project solution. have solution (the library solution) generates bunch of .libs used across multiple programs. 1 of these libs generated fortran code (intel fortran 77 compiler) enforcing uppercase names.

i statically link these libraries solution build application in (which happens in c++, appropriate "extern c"s , prototypes.

the issue have, can delete library generates particular function, , program happily compiles (okay fine) , links (what crap!). go every library in linker->input->additional dependencies, , objdump looking function (well subroutine in fortran) name, , doesn't come up. same thing project dependencies, , still no dice.

if go , change libraries (and function calls , prototypes) random (like myfunction12345) , recompile , link, works expect, getting linked in can't find.

fwiw function name air

i'm less interested in solving particular problem in learning how figure out libs being used vs @ link time. addidionally, i'd love know if there linker flag can thrown warn, or error out if there multiply defined objects @ link time.

any ideas?

add /verbose linker command line additional options. in resulting output, lines such "found _air in xxxx". surrounding lines should give pretty clear indication of what's going on.

you may have library same name being pulled in library search path ahead of intended library, or perhaps relevant symbol defined in default library.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -