-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linking the first example with the instructions given doesn't work #1
Comments
Hi @Hemaolle: thanks for the report! However, I'm slightly confused:
Maybe it wasn't clear, but the Writing A Build Script section does cover this: https://sonictk.github.io/asm_tutorial/#hello,worldrevisted/writingabuildscript . The example also does specify Line 82 in 0731a14
This is also covered in the same section, and also specified in the example build script: Line 89 in 0731a14
That's very strange; what are you seeing when you try to run this in the developer command prompt? For all intents and purposes that should be calling Line 34 in 0731a14
Let me know if something in the tutorial was otherwise unclear regarding the above! |
Ah, I suppose I could have been clearer about which section I was talking about. I didn't yet get to the build script part, this was about the "Hello, world" example: https://sonictk.github.io/asm_tutorial/#introduction/settingup/hello,world.
To clarify, I had to remove part
Maybe they should be added to the "Hello, world" example as well?
This is the output I get if I run the command that worked for me in x64 Native Tools Command Prompt for VS 2019 (I upgraded to VS 2019 since I tried this earlier, but it seems that the same problems exist in that version as before).
Btw, when opening x64 Native Tools Command Prompt for VS 2019 it mentions that
whereas Developer Command Prompt for VS 2019 doesn't, it only prints this part:
Let me know if something needs further clarification! 🙂 |
Ah, I see. I think I can update the tutorial to add those instructions to the earlier part as well. As for the developer command prompt; what's happening there is that you're getting the x86 version of the command prompt (which assumes you're developing for a 32-bit environment), to get the x64 version you want to launch the "x64 Native Tools Command Prompt for VS 2017" instead: https://docs.microsoft.com/en-us/cpp/build/how-to-enable-a-64-bit-visual-cpp-toolset-on-the-command-line?view=msvc-160 I'll update the tutorial regarding this as well. Thanks for the report! |
I'm getting these errors with the command in the tutorial:
This command worked for me:
/entry:main
kernel32.lib legacy_stdio_definitions.lib msvcrt.lib
Also, I had to run this in
x64 Native Tools Command Prompt for VS 2017
,Developer Command Prompt for VS2017
suggested in the tutorial didn't work.The text was updated successfully, but these errors were encountered: