Command line in VC++ 6?

This is a discussion on Command line in VC++ 6? within the C++ Programming forums, part of the General Programming Boards category; How do I run commands on VC++ 6? I tried looking up command line window on MSDN but none of ...

  1. #1
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96

    Command line in VC++ 6?

    How do I run commands on VC++ 6? I tried looking up command line window on MSDN but none of the ways work because this is not Visual Studio .NET. It is Visual C++ 6.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96
    Well I need to get to some 'command line' in VC++ 6 to run a '/Zm' command because the compiler is out of memory and my program is too large to compile at the default.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    IIRC, you can edit the command line options from the IDE by going to 'Project", then "Settings" and they're under the "General" tab I believe. I can't confirm that because I don't have VC++ 6 installed on my machine at the moment, but it should give you a start for your search.
    My best code is written with the delete key.

  5. #5
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96
    Ok thanks. But now that I set /zm I'm getting this error during compilation:
    --------------------Configuration: ARENA - Win32 Debug--------------------
    Linking...
    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/ARENA.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    Anyone know what is wrong?

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Anyone know what is wrong?
    The linker can't find main. Since main is an entry point into a standard C++ program, it's rather important that you define it. This error usually shows up when you try to compile a Win32 program in a console mode project because Win32 programs use WinMain as the entry point.
    My best code is written with the delete key.

  7. #7
    Novice C++ Programmer
    Join Date
    Nov 2003
    Posts
    96
    Quote Originally Posted by Prelude
    >Anyone know what is wrong?
    The linker can't find main. Since main is an entry point into a standard C++ program, it's rather important that you define it. This error usually shows up when you try to compile a Win32 program in a console mode project because Win32 programs use WinMain as the entry point.
    But I've compiled this project many times, in fact, I've even put it on these forums (in an early beta) for people to test in the games section. Then I added that code that caused me to have to use /Zm. Now it won't work. Main, as well as the rest of the program, is still there.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to show line no in VC ++
    By mpushkar in forum Tech Board
    Replies: 1
    Last Post: 12-17-2006, 08:33 AM
  2. makefile exported by vc 6.0 doesn't work
    By wow in forum Windows Programming
    Replies: 7
    Last Post: 03-24-2006, 03:20 PM
  3. Can't compile this with VC 6.0
    By uriel2013 in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 07:43 PM
  4. VC 7.0 and templates
    By Mongush in forum C++ Programming
    Replies: 12
    Last Post: 03-11-2003, 09:32 AM
  5. Why VC?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 04-15-2002, 05:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21