Thread: No clue what the problem is...

  1. #1
    Codigious FingerPrint's Avatar
    Join Date
    Mar 2006
    Posts
    60

    No clue what the problem is...

    Ok I have jsut recently started programming, and I ahve a friend who is teaching me a bit. I made a short program...very short...and for some reason it wont work. When my friend runs it on his pc, in the same compiler, it works fine. Although when I run it, nothing happens. Neither of us no hwy it wont run, it just wont.

    I have checked to see if there are any errors, by looking at the error tab. It says:

    FILE:
    C:\Dev-Cpp\Makefile.win

    MESSAGE:
    [Build Error] [Project1.exe] Error 1



    There are no other errors, we have both check the code many many times. Also for some reason it wont let me compile it. Well it compiles, but then when I try to run it it says "Project Not Compiled"

    If you need anymore info on it, let me know and ill get it to you ASAP.

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    It may help a little bit to show the code..I am a noob though so I don't know

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    It looks like Dev-C++ wasn't installed properly. Did you just copy it from your friend's computer?

    Where are you saving your program? Try saving it as C:\hello.cpp
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Check the parameters you're passing to the project.

    Project > Project Options > Parameters

    Also on the bottom bar where you got the compile error, click on the compile log tab and paste that.
    Last edited by SlyMaelstrom; 03-25-2006 at 12:51 PM.
    Sent from my iPadŽ

  5. #5
    Codigious FingerPrint's Avatar
    Join Date
    Mar 2006
    Posts
    60
    Quote Originally Posted by dwks
    It looks like Dev-C++ wasn't installed properly. Did you just copy it from your friend's computer?

    Where are you saving your program? Try saving it as C:\hello.cpp


    No I am the one that typed the program and he just showed me some of the errors I made, to help me learn a bit. Also I saved it as project1.exe.


    Quote Originally Posted by SlyMaelstrom
    Check the parameters you're passing to the project.

    Project > Project Options > Parameters

    Also on the bottom bar where you got the compile error, click on the compile log tab and paste that.

    Here is the compile log.

    Code:
    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Makefile.win"
    Executing  make...
    make.exe -f "C:\Dev-Cpp\Makefile.win" all
    g++.exe -c project1.cpp -o project1.o   
    windres.exe -i Project1_private.rc --input-format=rc -o Project1_private.res -O coff 
    g++.exe project1.o Project1_private.res -o "Project1.exe" libkbhit  
    g++.exe: libkbhit: No such file or directory
    
    make.exe: *** [Project1.exe] Error 1
    Execution terminated
    Also after looking at that(I forgot it was down there) I think I didnt link the kbhit library correctly or something.

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    If you actually have a library called libkbhit*, like it using -lkbhit. If it's in a different directory, add the directory to the library path with -Lpath.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  2. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  3. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  4. Replies: 8
    Last Post: 04-19-2006, 09:07 AM
  5. help w/ array problem
    By rhythm313 in forum C++ Programming
    Replies: 3
    Last Post: 11-12-2002, 12:12 AM