Re: resolving linker errors





pauldepstein@xxxxxxx schrieb:
Not a language question at all but it is vc and any other group would
be hopelessly slow in responding. In my project, there are lots of
declared functions that are not defined. I am able to steadily
eliminate the linker errors by adding the definition files to the
solution and the files also become visible in solution explorer.

I wonder what you are doing here.
What functions are you talking about? Have you written them? Are they from other members of your team? Are they from a third-party library, or are they part of the standard runtime library?

If you have written them for the same project, then they should already be part of the project workspace. If not, you should know them and you should be able to simplay add all the cpp files from your project folder in one step.

If the functions are from a different (or third party) project, you would normally have library (*.lib file) and all you should need to do is add the lib file to your linker settings (look for "additional libraries" in the input files section).

Norbert



I would bet that it's possible to tinker with the settings so that the
compiler finds the files even when they are not in the solution. I
would bet there's a faster solution than simply adding the files one
at a time.

I am a newbie so I would be grateful for easily-followable
instructions such as "go to tools then options ..."

Thank you very much for your help.

Paul Epstein
.



Relevant Pages

  • Re: Success Through Cluelessness
    ... > object in my lib file would crash. ... > managed dll. ... > multithreaded libraries are required. ...
    (microsoft.public.dotnet.languages.vc)
  • Linker is looking for a bogus library, for some reason.
    ... I have a VC.Net solution that consists of three projects, two of which are static libraries, and the other is the target application. ... When I build the project, it all compiles just fine, but the linker fails to find a .lib file. ... Their command lines on the "Librarian" part of the project settings are: ...
    (microsoft.public.vc.ide_general)
  • Re: newbie question about NASM
    ... > .LIB file they have given me was made with MASM. ... Is this .LIB file available to the public? ... > rewriting the MASM code to NASM with great success. ... > to use 3rd party libraries. ...
    (alt.lang.asm)
  • Using Functions of Executable
    ... I have got an executable generated with gnatmake. ... libraries and used during run-time. ... option i don't get any .lib file to link my Dll against. ...
    (comp.lang.ada)
  • Re: Migration
    ... > application and import those libraries. ... > linker option and include those header files inside the program. ... when I call one of the function inside the lib file I ... > imported and compile the project, a lot of multiple defined symbol ...
    (microsoft.public.dotnet.languages.vc)

Loading