[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Stupid compile errors.
From: David Siebert ####@####.#### Date: 30 Jan 2003 20:45:35 -0000 Message-Id: <3E398CBD.20207@eclipsecat.com> I am getting a very strange compiler error. The compiler says that RED, WHITE, and BLACK are not defined. But it used to work. What is really odd is that it works when I compile just that object but gives me an error when I build the entire program. Here is the constructor that gives me the error. #include "stenowindow.h" StenoWindow::StenoWindow(){ init(); } StenoWindow::~StenoWindow(){ } /** Create the StenoWindow */ void StenoWindow::init(){ m_iScrollBack=0; m_sGContext = GrNewGC(); GrSetGCUseBackground (m_sGContext, GR_FALSE); GrSetGCForeground (m_sGContext, RED); // !!!!!!!!!!!!< Can not find RED GR_SCREEN_INFO sci; GrGetScreenInfo(&sci); int wy,wbase; m_iLineH=wy; m_wWindow = GrNewWindowEx (GR_WM_PROPS_APPFRAME | GR_WM_PROPS_CAPTION | GR_WM_PROPS_CLOSEBOX| GR_WM_PROPS_NOFOCUS, (GR_CHAR *)"Steno Window", GR_ROOT_WINDOW_ID, sci.cols-216, 0, 216, sci.rows, WHITE); //printf("win=%d\n",(m_iChar*24)); GrSelectEvents (m_wWindow, GR_EVENT_MASK_EXPOSURE | GR_EVENT_MASK_BUTTON_UP); GrMapWindow (m_wWindow); } And here are the defines and includes from StenoWindow.h #ifndef STENOWINDOW_H #define STENOWINDOW_H #include <stdio.h> #include <string> #define MWINCLUDECOLORS #include "microwin/nano-X.h" #include "stenofile.h" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |