TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: George De Bruin
from: Paul Edwards
date: 1996-03-26 22:34:00
subject: Emx 0.9a

GDB> I have just installed EMX/GCC 0.9a on my system from the December '95

I assume you are using it under OS/2, hence the post in OS2PROG.

GDB> First question: When I installed EMX/GCC, I opted not to install the
GDB> GPP or Objective C portions.  Should I have installed them even though
GDB> I am not going to be using C++ or Objective C in my code?

No.  Forget about them.

GDB> Question: how do I get GCC to allow re-directing the error output to a
GDB> file?  I thought that the -e would do it, but when I tried it, I ended
GDB> up with a 0 byte file on my disk, and the error output on the screen.

gcc fred.c >temp.txt

or if that doesn't work, then

gcc fred.c >temp.txt 2>&1

This is an OS/2 output redirection question, nothing to do with gcc.

GDB> Question: what is the ffblk struct in BC++?  Is there an equivalent
GDB> struct in GCC/EMX?  (This one seems to be what is causing about half of
GDB> the problems in compiling this code....)

That is a compiler-specific function.  There is no such thing in
standard C.  However, there is an OS/2-specific call to get that
info, DosFindFirst, etc.

GDB> Question: What is _setcursortype() function in BC++?  Is there an
GDB> equivalent function in GCC/EMX?

That is another compiler-specific question.  You can get an 
OS/2-specific replacement function.

GDB> Any help with these questions is greatly appreciated!

FREQ "OZPD" from 3:711/934 and look at trav.c for directory traversal.
It is a bit too big to post here.

Here is a bit of code for the cursor...

/*********************************************************************/
/*                                                                   */
/*  This Program Written by Paul Edwards.                            */
/*  Released to the Public Domain                                    */
/*                                                                   */
/*********************************************************************/
/*********************************************************************/
/*                                                                   */
/*  showcurs - unhide the cursor in OS/2                             */
/*                                                                   */
/*********************************************************************/

#define INCL_VIO
#include 

int main(void)
{
    VIOCURSORINFO info;
    
    VioGetCurType(&info, 0);
    info.attr = 0;
    VioSetCurType(&info, 0);
    return (0);
}



BTW, if you can find a copy of MSQ330.ZIP (you should be able to
without any difficulty), you will find a bit of code in there that 
calls DirFindFirst.  BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.