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

    Problems with compiling

    I downloaded a simple database management system from planet source code and tried compiling it but the error below pops up. This code is compiled using turboc3.0.How do i correct this error so that i can run this program effectively without bugs?

    --------------------Configuration: MAIN - Win32 Debug--------------------
    Compiling...
    DATABASE.CPP
    c:\unzipped\simple database management system\database\database.cpp(27) : fatal error C1083: Cannot open include file: 'c:\database\vdu.h': No such file or directory
    Error executing cl.exe.

    DATABASE.OBJ - 1 error(s), 0 warning(s)

    I have the header file vdu.h(given by the writer of this source code), but i do not know how do i set the path for it so that there would not be any errors popping up.

    According to the writer of this code, i should include the files data.dat and vdu.h in the correct path. But the file data.dat cannot be used because i do not have the appropriate program to open up this file. What do i have to do to be able to open and run this file(data.dat)?

    There is another file, demo.cpp, which is also included together with this file, and is a demo of how the vdu.h file is used. This file also has compilation problems, and the error below pops up when i try to compile it.

    --------------------Configuration: DEMO - Win32 Debug--------------------
    Compiling...
    DEMO.CPP
    d:\simple_dat16605810182003\database\demo.cpp(26) : fatal error C1083: Cannot open include file: 'd:\cprgs\vdu.h': No such file or directory
    Error executing cl.exe.

    DEMO.OBJ - 1 error(s), 0 warning(s)
    Last edited by __gini2; December 24th, 2006 at 05:10 AM.

  2. #2
    Join Date
    Jan 2003
    Location
    Cambridge, UK
    Posts
    752

    Re: Problems with compiling

    are there any hardcoded paths in those sources? or maybe default folders to look for headers etc.?
    Cheers,

    Alex
    Please rate this post if you find it helpful

  3. #3
    Join Date
    May 2004
    Location
    45,000FT Above Nevada
    Posts
    1,539

    Re: Problems with compiling

    Take a look at your path to the vdu.h file, it's not even close to where you have your project/cpp files..you can hard code the path or change it in your projects settings.
    Jim
    ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

    "The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

    "Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

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