CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Posts
    43

    Compilation Error Using Visual C++ 2

    Hi all,

    I use Visual C++ Version 2 to compile one of my C program
    and it return an error like this

    ============================================
    Command line error D2022 : cannot open 'C:\Documents'
    Error executing cl.exe.
    rg7400i.obj - 1 error(s), 0 warning(s)
    ============================================

    I don't get what is the error mean....can anyone help me with this?...Thanks a lot....

    Eric

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    Ol;der versions do not work well with long filenames this is especially true of ones with spaces in them.

    It looks like your program may reside in a sub directory of "My Documents"......
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Apr 2001
    Posts
    43
    Hi...

    Thanks...
    The problem solved already...It was the
    path problem. We have to set path for
    the lib in the "Enviroment Variable" coz
    the Visual C++ version 2 will not help us
    set the path during installation.
    Thanks ...


    Eric

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured