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

  • SEARCH
  • Home
  • 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 3626602
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:46:59+00:00 2026-05-18T23:46:59+00:00

I have an MSVC++ project set up to compile and run assembly code. In

  • 0

I have an MSVC++ project set up to compile and run assembly code.

In main.c:

#include <stdio.h>

void go() ;

int main()
{
  go() ; // call the asm routine
}

In go.asm:

.586
.model flat, c
.code

go PROC
  invoke puts,"hi"
  RET
go ENDP

end

But when I compile and run, I get an error in go.asm:

error A2006: undefined symbol : puts

How do I define the symbols in <stdio.h> for the .asm files in the project?

  • 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-05-18T23:46:59+00:00Added an answer on May 18, 2026 at 11:46 pm

    Here’s what I have.

    It works!!

    .586
    .model flat,c
    
    printf PROTO C :VARARG  ; The secret sauce.. a prototype of printf
    
    .data
    msgHello1 BYTE "GREETINGS AND WELCOME TO EARTH!",0 
    
    .code
    
    go PROC
      push OFFSET msgHello1
      call printf
      add esp, 4 ;  Stack cleaning
      RET
    go ENDP
    
    end
    
    • “stack cleaning”
    • How to call variadic argument function such as printf
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MSVC Makefile Project in which I need to set an environment
I use MSVC 2008. Let's say I have a function in my code: int
I have run into a problem while writing C++ code that needs to compile
I am trying to compile SDL_ttf with MinGW and Code::Blocks. I have imported the
I have a source file in my project, which has more than 65,536 code
I've found a strange looking piece of code in a project I have to
In MSVC 2008, I have the following code: class Foo { // Be a
Here what I have: the user application - it's MSVC project, service, written on
I've started using Doxygen for a C project. I have set both EXTRACT_ALL and
I have gotten the GLUT 3.7 source and opened the MSVC project. I switched

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.