[C++] Build Error? Please Help!
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 27

Thread: [C++] Build Error? Please Help!

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    13

    Exclamation [C++] Build Error? Please Help!

    Hi community, i'm new user here.I'm trying modify and build a script from a open source program called WinCdEmu Portable.The portable version have a error in the code and i can use the command line because the software don't recognize the virtual driver installed.
    This is the line to modify:

    Code:
    VirtualCDClient clt&status);
    To this line:

    Code:
    VirtualCDClient clt(&status, true);
    The file is batchmnt.cpp an is in in this source directory:
    souceforge.net/projects/wincdemu/files/wincdemu/3.4/

    This is the library, indispensable for build the file
    bazislib.sysprogs.org/

    Every time i change the line and try to build the file to .exe i have the same error:
    1 Error "file not found..."
    But the file are all here and the library is installed.

    Please someone help me and try to build the file.
    It' very important for me.
    Thanks, John

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: [C++] Build Error? Please Help!

    Quote Originally Posted by johnmcloud@libero.it View Post
    Hi community, i'm new user here.I'm trying modify and build a script from a open source program called WinCdEmu Portable...
    Well, scripts are not discussed on this Forum. This is
    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.
    Quote Originally Posted by johnmcloud@libero.it View Post
    Every time i change the line and try to build the file to .exe i have the same error:
    1 Error "file not found..."
    But the file are all here and the library is installed.
    What IDE are you using?
    Show the exact and full error message.
    Victor Nijegorodov

  3. #3
    Join Date
    Jun 2011
    Posts
    13

    Re: [C++] Build Error? Please Help!

    Quote Originally Posted by VictorN View Post
    What IDE are you using?
    Show the exact and full error message.
    Fatal Error C1083 Cannot open include file "bzscmn/file.h" No such file or directory
    The file is present in the same directory
    I'm using Visual C++ 6.0

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: [C++] Build Error? Please Help!

    Which file is present and in which directory?
    In the same as the compiled .cpp is?
    In the project directory?

    And did you try to open the "file" bzscmn/file.h in Windows Explorer?
    Victor Nijegorodov

  5. #5
    Join Date
    Jun 2011
    Posts
    13

    Re: [C++] Build Error? Please Help!

    Quote Originally Posted by VictorN View Post
    Which file is present and in which directory?
    In the same as the compiled .cpp is?
    In the project directory?

    And did you try to open the "file" bzscmn/file.h in Windows Explorer?
    I have example:
    C:/project/folder/file.cpp
    C:/project/folder/bzscmn/file.h ----Not working

    I have try also
    C:/project/folder/file.cpp
    C:/project/folder/file.h ----Not working

    I have open the file.h in visual c, the file work.
    Above i have post the link of the project.

    Thanks for your patience

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: [C++] Build Error? Please Help!

    Quote Originally Posted by johnmcloud@libero.it View Post
    ...
    Above i have post the link of the project.
    Where "Above"? i don't see any.
    Besides, please don't post the "links" to the project. Instead, attach the project (in zip archive) to your post. Please don't include .aps, .ncb files nor Debug/Release folder into that zip.
    Victor Nijegorodov

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: [C++] Build Error? Please Help!

    Well, I tried to test one of your projects () in VS2010 (after project converting, of course!) In your post
    Quote Originally Posted by johnmcloud@libero.it View Post
    Fatal Error C1083 Cannot open include file "bzscmn/file.h" No such file or directory
    The file is present in the same directory
    I'm using Visual C++ 6.0
    you messed to show the exact #include directive causing the error. I'm doing it now for you:
    Code:
    #include <bzscmn/file.h>
    Now, please, go to MSDN and read about The #include Directive:
    Syntax Form
    Action
    ...
    Angle-bracket form
    This form instructs the preprocessor to search for include files first along the path specified by the /I compiler option, then, when compiling from the command line, along the path specified by the INCLUDE environment variable.
    None of my PC directory mentioned in MSDN does contain file "bzscmn/file.h", so I got the same error as you had got.
    And I'm pretty sure you don't have this file in the mentioned directory either.

    And BTW, to test this small project to reproduce the error I didn't need any other projects you sent, and, of course, I didn't need any external library either.
    Victor Nijegorodov

  8. #8
    Join Date
    Jun 2011
    Posts
    13

    Re: [C++] Build Error? Please Help!

    The directory is in visual studio, folder "include"?
    I try it but not work

    The error is the same, file not exist.
    I'll post the library, so you can try.

  9. #9
    Join Date
    Jun 2011
    Posts
    13

    Re: [C++] Build Error? Please Help!

    Quote Originally Posted by johnmcloud@libero.it View Post
    The directory is in visual studio, folder "include"?
    I try it but not work

    The error is the same, file not exist.
    I'll post the library, so you can try.
    Here we are. Is not a link, so you can download
    I have extract the file from .exe in two archivie.
    The 2 .rar go into the same directory before extract.

    Thanks again
    Attached Files Attached Files

  10. #10
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,392

    Re: [C++] Build Error? Please Help!

    Quote Originally Posted by johnmcloud@libero.it View Post
    The directory is in visual studio, folder "include"?
    I try it but not work
    The error is the same, file not exist.
    What did you try?
    Does the folder "bzscmn" exist within the VC "Include" directory?
    Does the file "file.h" exist within "bzscmn" folder?
    Did you try
    Code:
    #include <bzscmn\file.h>
    or
    Code:
    #include "bzscmn\file.h"
    rather than
    Code:
    #include <bzscmn/file.h>
    Quote Originally Posted by johnmcloud@libero.it View Post
    I'll post the library, so you can try.
    Don't do it. No one here needs it.
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center