CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Posts
    33

    Unhappy fatal error LNK1113: invalid machine type

    I'm doing an interfase for a card reader with a SDK, I have set the path to where the *.h are, when I compile the proyect doesn't reports any problem, but when I try to run the project display this error.

    --------------------Configuration: UART - Win32 Debug--------------------
    Linking...
    C:\_HOME\ARCHIVOS RECIBIDOS\PP795\PP795 SDK\795PI411\LIB\libapi.a : fatal error LNK1113: invalid machine type
    Error executing link.exe.

    UART.exe - 1 error(s), 0 warning(s)

    What can be the reason for this error and how can it be solved.

    THANKS.
    Mess With The Best & Die Like The Rest

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: fatal error LNK1113: invalid machine type

    LNK1113 You're not running the program, it must have failed to compile if Visual Studio is trying to link it.

    Viggy

  3. #3
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: fatal error LNK1113: invalid machine type

    Is this SDK made for Windows? In my mind lib files with a as the extension are usually for linux or some other OS.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured