Linker options VC2008



  • Hi,

    ich wollte eine datei dem linker nach den generellen optionen hinzufügen in dem das statement /DELAYLOAD:"bla.dll" oder andere steht, dammit ich ohne dass ich das projectblatt bearbeiten muss einfach eine datei beschreiben und anzeigen kann.

    Leider gibt mir der linker lnk1107 aus, und weiß net wie ich das umgehen kann,...

    hat jemand ne idee??

    grüüße



  • link

    MSDN Library for Visual Studio schrieb:

    Error Message
    invalid or corrupt file: cannot read at location
    The tool could not read the file. Recreate the file.

    LNK1107 could also occur if you attempt to pass a module (.dll or .netmodule extension created with /clr:noAssembly or /NOASSEMBLY) to the linker; pass the .obj file instead.

    If you compile the following sample:

    // LNK1107.cpp
    // compile with: /clr /LD
    public ref class MyClass {
    public:
       void Test(){}
    };
    

    and then specify link LNK1107.dll on the command line, you will get LNK1107. To resolve the error, specify link LNK1107.obj instead.


Anmelden zum Antworten