Thread: Making own output/input device

  1. #16
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    wow that is really weird. there should be no error like that. especially on a line that does not exist.

    edit: especially, it is highly unlikely that a compiler has a bug.

  2. #17
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    checknumber is used before it's declared
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  3. #18
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    Originally posted by abrege
    checknumber is used before it's declared
    how? it is prototyped under #include <iostream>

  4. #19
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187
    Sometimes the compiler refers you to lines in the header file. Check line 56 of the header.
    L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!

    Speling is my faverit sujekt

    I am a signature virus. Add me to your signature so that I may multiply.

  5. #20
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Originally posted by alpha
    how? it is prototyped under #include <iostream>
    Ah, missed that
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  6. #21
    Geek. Cobras2's Avatar
    Join Date
    Mar 2002
    Location
    near Westlock, and hour north of Edmonton, Alberta, Canada
    Posts
    113
    very odd.. it compiled fine on my MSVC++ 6.
    Just a wild tangent but might it have something to do with your declaring the function outside of std ... ?
    Namespaces are one of the few things in C++ I haven't learned much at all about yet
    James G. Flewelling
    Rgistered Linux User #327359
    Athabasca University Student (BSc. CIS)

    http://catb.org/~esr/faqs/smart-questions.html
    http://catb.org/jargon/

    http://www.ebb.org/ungeek
    ---GEEK CODE---
    Version: 3.12
    GCS/IT/M d- s+:++ a-->->>+>++>+++>? C++++>$ UL++>++++$ P++>++++ L++>++++$
    E W++ N o? K? w++(--)>--- O? M? V? PS--(---) PE Y+ PGP? t 5? !X R(*)>++
    tv-->! b++(+++)>++++ DI? D+++(---)>++++$ G e*>++$ h++>*$ r!>+++ y?
    ----/GEEK CODE----
    upd: 2005-02-11

  7. #22
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    Works fine in Dev C++ 4 too. What compiler are you using??
    Visit entropysink.com - It's what your PC is made for!

  8. #23
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    YOU MEAN ITS ALREADY DEFINED?!?!?!? DANG!!!!!
    This war, like the next war, is a war to end war.

  9. #24
    Linux Forever
    Join Date
    Oct 2002
    Posts
    373
    Im using gnu.
    This war, like the next war, is a war to end war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making smart device cab problem
    By mr_empty in forum Windows Programming
    Replies: 1
    Last Post: 01-08-2008, 03:01 AM
  2. Device Driver: sysfs confusion
    By filker0 in forum Linux Programming
    Replies: 0
    Last Post: 12-02-2005, 11:36 AM
  3. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  4. making a modem a telephone device
    By ekarapanos in forum C Programming
    Replies: 1
    Last Post: 04-19-2003, 08:56 AM
  5. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 12:02 PM