Thread: Dev-C++ Problems

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    28

    Exclamation Dev-C++ Problems

    hey im using c++ in my school and i made a program there and it works fine there, but now that i try to use it at home it doesnt work. i'm positive its because im using dev-c++. the problem happens when i use the randomize function in my program. here is what the error says:


    implicit declaration of function `int randomize(...)'

    implicit declaration of function `int random(...)'

    i hope that someone who uses dev knows how to solve this problem.

    Thanks in advance!

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    What header files are you including? I think that your school installed speacial header files with the randomize function. I do not think that it is a standard function.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    28
    i used these ones im pretty sure they are right
    #include<iostream.h>
    #include<stdlib.h>
    #include<conio.h>
    #include<fstream.h>
    by the way im just wondering if u have used dev before, im not tring to be mean its just that devv is alot different than other normal c++ programs.

    thanks for replying!

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Dev-C++ is the IDE I use. It isn't that different either. The only difference that I can think of is that you might have downloaded a different version. Make sure that you and your school are both using the same version.

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    28
    dood,
    my school is using turbo c++ from borland. the way we could solve this is if u send me a code tag showing me how to use randomize in devc++

    thanks

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Ooh, I thought that you were using Dev-C++ at school too.

    The problem is that conio.h is a non-standard header file. This means that some compilers might not support it. Try including either conio.c or mingw_conio.h. These are two header files that contain most of what conio.h contains.

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Don't double post. Also, if you follow the advice of golfinguy4 make sure that you are linking conio.c not including it.

    Again, double post is annoying. It puts you on the the moderators' bad sides. Additionally, it won't necessarily get you more responses.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. Programming With Dev C++
    By v01d in forum C++ Programming
    Replies: 3
    Last Post: 09-14-2007, 01:51 AM
  3. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  4. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  5. Dev and errors
    By Moffesto in forum C++ Programming
    Replies: 0
    Last Post: 06-22-2002, 12:17 AM