home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18622 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  1.2 KB

  1. Path: sparky!uunet!caen!kuhub.cc.ukans.edu!jeff
  2. From: jeff@kuhub.cc.ukans.edu (Jeff Bangert)
  3. Newsgroups: comp.lang.c++
  4. Subject: BC++ 3.1, outportb -> Bad call
  5. Message-ID: <1993Jan1.081040.46014@kuhub.cc.ukans.edu>
  6. Date: 1 Jan 93 08:10:40 CST
  7. Organization: University of Kansas Academic Computing Services
  8. Lines: 27
  9.  
  10. Why does outportb produce the error message "Bad call to intrinsic
  11. function"?
  12.  
  13. Here's what I know so far: I'm running Borland C++ 3.1 using
  14. precompiled headers.  I've got a call to outportb which compiles
  15. correctly almost all the time.  The call is in a .CPP file which
  16. defines a device driver class.
  17.  
  18. Sometimes, when I try to compile the main program, I get an error from
  19. the device driver -- outportb is a Bad call to intrinsic function.
  20.  
  21. I can fix this by deleting all the .SYM files, and then compiling the
  22. device driver.  However, I would really like to know why I get the
  23. error message.
  24.  
  25. Note: the line which contains the outportb compiles most of the time,
  26. so there is nothing wrong with it.  Yes, I did include dos.h.  No, I
  27. do not want to turn off precompiled headers.
  28.  
  29. Thanks for the help,
  30.  
  31. -- 
  32. Jeff Bangert            jeff@kuhub.cc.ukans.edu
  33. Computer Center            jeff@ukanvax.bitnet
  34. University of Kansas
  35. Lawrence, KS 66045
  36. (913)864-0466
  37.