Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8794109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:12:29+00:00 2026-06-13T23:12:29+00:00

Using link.exe with the visual studio command prompt: link.exe C:\Users\Jon\Desktop\euler\asm\test kernel32.dll provides the ever

  • 0

Using link.exe with the visual studio command prompt:

link.exe "C:\Users\Jon\Desktop\euler\asm\test" kernel32.dll

provides the ever helpful: LINK : fatal error LNK1181: cannot open input file 'kernel32.dll'
Why can’t it link against a system dll?

I moved on to GoLink:

"C:\Program Files (x86)\nasm\golink.exe" /console test.obj Kernel32.dll

Which links just fine, but crashes as soon as I run it.
I’m using NASM "C:\Program Files (x86)\nasm\nasm.exe" -fwin64 "test.asm"

Here’s my assembler Pastebin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:12:30+00:00Added an answer on June 13, 2026 at 11:12 pm

    MSVC’s link cannot link directly to a DLL – you’ll need to use the kernel32.lib import library instead:

    link.exe "C:\Users\Jon\Desktop\euler\asm\test.obj" kernel32.lib
    

    You will need to make sure that the environment is set up correctly so link.exe can find the import library. That’s often done by the vcvarsall.bat (or similar) script/batch file that configures the command line window used to run the tools. If you don’t have something configuring the environment for the build tools, you’ll need to pass in the location of the library, either by using the full path or by passing in a directory with the /libpath linker option.

    I don’t know what GoLink is, so I can’t comment on what it’s doing right or wrong…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using visual studio 2008 SP1, This line: LINK : debug\XXXXX.exe not found or not
Using Visual Studio 10 C++, I'm having weird link error. For some reason references
I have a desktop application developed with Lightswitch using Visual Studio 2012. The app
note: First of all i am using visual studio 2010. Usually i need dll
I am compiling several C++ sources using cl.exe (Visual Studio 2010 Express). The sources
Using Visual Studio C++ 2008 Express: I am trying to perform the final link
Using Visual Studio 2010 C++. I have a project which uses MFC and I
Problem Description: Occassionally when debugging, I get the following error. I'm using visual studio
I am using visual studio 2008 to build an app that has 40 projects.
I'm trying to create a two sided queue with c++. I'm using Visual Studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.