locked
Problem with using iostream

    Question

  • Hi there

    I downloaded Visual C++ Express and the Win Server PSDK.

    Now I try to write some small command-line apps. I want to use iostream. But the linker always tells me he can't find msvcirt(d).lib. On m computer there are two versions of this file. But they seem to be 64bit versions.

    I read somewhere msvcirt(d).lib is obsolete. But how can I than use the iostreams?

     

    Thanks!

    sondundso

    Wednesday, November 15, 2006 2:38 PM

Answers

  • Can you post the code that is giving the error?

    If you start from the console template, you should be able to compile and build the following:

    #include <iostream>

    void main()

    {

        std::wcout << L"Hello, World!" << std::endln;

    -Reza

    Thursday, November 16, 2006 12:45 AM

All replies

  • Can you post the code that is giving the error?

    If you start from the console template, you should be able to compile and build the following:

    #include <iostream>

    void main()

    {

        std::wcout << L"Hello, World!" << std::endln;

    -Reza

    Thursday, November 16, 2006 12:45 AM
  • I did somethig like this:

    #include <iostream>

    void main()

    {

        std::cout << "Hello, World!";

     

    I had some old code from C++ tutorials and books. But it didn't work that way.

    It's not so important since I'm not programming apps for the console right now.

    I'll try it out with wcout...

    Thanks! ...sondundso

    Wednesday, November 29, 2006 9:10 PM