Thread: Need help with Dev C++

  1. #1
    using namespace Trooper; St0rmTroop3er's Avatar
    Join Date
    Sep 2003
    Posts
    77

    Need help with Dev C++

    I get this error when compiling



    Code:
    g++: c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.o: No such file or directory
    g++: file path prefix `C:\DEV-C_~1\Bin\' never used
    
    
    // And this one...
    
    
    g++: c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.o: No such file or directory
    g++: file path prefix `C:\DEV-C_~1\Bin\' never used
    Can you please tell me whats the problem?

    I"m trying to compile a program that uses DirectX with the lib files but it says...
    Code:
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:37: ddraw.h: No such file or directory
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:38: dsound.h: No such file or directory
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:39: dmksctrl.h: No such file or directory
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:40: dmusici.h: No such file or directory
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:41: dmusicc.h: No such file or directory
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:42: dmusicf.h: No such file or directory
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d.cpp:43: dinput.h: No such file or directory



    ~Trooper
    Your mom is like a struct, she has no class

    How many C programmers does it take to screw in a light bulb? One to do it, 99 to tell him how to do it faster.

  2. #2
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    1. The specified file cannot be found.
    2. You seem to not have specified the correct directory to search the includes & libs for.
    3. Are you trying to learn Dx? Are you sure you have the level to do so? Just a question.

  3. #3
    using namespace Trooper; St0rmTroop3er's Avatar
    Join Date
    Sep 2003
    Posts
    77
    well I put all the .lib files in the same directory as the program but it won't work. Could you explain in m ore detail?


    ~Trooper
    Your mom is like a struct, she has no class

    How many C programmers does it take to screw in a light bulb? One to do it, 99 to tell him how to do it faster.

  4. #4
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    There is a compiler-dependent option in the command line of your compiler that should add a searching path for includes, and another for libs.

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    12
    The spaces in the path
    c:\documents and settings\ryan\my documents\t3diichap01\raiders3d
    might be causing the problem
    Put you files in a folder that's in a path with no spaces
    and it could solve your problem

  6. #6
    Registered User
    Join Date
    Sep 2003
    Posts
    3
    Originally posted by lyx
    There is a compiler-dependent option in the command line of your compiler that should add a searching path for includes, and another for libs.
    yes, you must add the path to the libs and .h files to be able to use them

  7. #7
    using namespace Trooper; St0rmTroop3er's Avatar
    Join Date
    Sep 2003
    Posts
    77
    okay, how do I add the paths? mayby I"m not eperianced enought to be programming this :-\





    ~Trooper
    Your mom is like a struct, she has no class

    How many C programmers does it take to screw in a light bulb? One to do it, 99 to tell him how to do it faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 12:05 AM
  2. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 07:43 PM
  3. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 3
    Last Post: 03-08-2004, 07:47 PM
  4. openGL programming - From MSVC++ to Dev C++
    By WDT in forum Game Programming
    Replies: 1
    Last Post: 03-08-2004, 04:19 PM
  5. DEV C++ Limitations?
    By Kirdra in forum Game Programming
    Replies: 3
    Last Post: 09-09-2002, 09:40 PM