Unresolfved token - sprintf

  • Thread starter Thread starter Nelson Hsu
  • Start date Start date
N

Nelson Hsu

I keep getting an unresolved token error during linking on sprintf.
I've included <stdio.h> but the problem is still there.
 
Nelson said:
I keep getting an unresolved token error during linking on sprintf.
I've included <stdio.h> but the problem is still there.

you're confused a bit. <stdio.h> only includes prototypes to make the
compiler happy. It has nothing to do with linking! Can you be more
precise?

/steveA
 
Steve Alpert said:
you're confused a bit. <stdio.h> only includes prototypes to make the
compiler happy. It has nothing to do with linking! Can you be more
precise?

/steveA

Oops, never mind. It turns out that I had to link in msvcrt.lib. The
only error now is unresolved token for fcloseall. Strange, I thought
that would be in msvcrt.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top