This is so wild!

From: Doru-Catalin Togea (doru-cat_at_ifi.uio.no)
Date: 09/16/04


Date: Thu, 16 Sep 2004 04:33:51 +0200

Hi!

I have the following code in one of my programs:

-------------------------
#include "e_EWebCam.h"

...

//EWebCam *EWebCamPtr = new EWebCam("TheWebCam");
EWebcam *EWebCamPtr = new EWebCam("TheWebCam");
-------------------------

It produces this error under compilation, as if the appropriate header
file has not been included:

-----------------------------------
[catalin@localhost dacapo]$ make
c++ -g -fno-inline -Wall -I. -I/opt/Ice-1.4.0/include -c serverCB.cpp
serverCB.cpp: In member function `virtual int ServerCB::run(int, char**)':
serverCB.cpp:47: error: `EWebcam' undeclared (first use this function)
serverCB.cpp:47: error: (Each undeclared identifier is reported only once
for
   each function it appears in.)
serverCB.cpp:47: error: `EWebCamPtr' undeclared (first use this function)
serverCB.cpp:51: warning: unused variable `EMic*EMicPtr'
make: *** [serverCB.o] Error 1
[catalin@localhost dacapo]$
-----------------------------------

Now this is the wild part: If I uncomment the first line and comemnt out
the second line, the program compiles fine, like this:

-------------------------
#include "e_EWebCam.h"

...

EWebCam *EWebCamPtr = new EWebCam("TheWebCam");
//EWebcam *EWebCamPtr = new EWebCam("TheWebCam");
-------------------------

I ended up having to identical lines of code, because the frist I wrote
was the one that would not compile, and I have rebuild this initialization
step by step on another line of code until I had the same. Only that this
time it compiles. Even now when I switch between these two lines, I still
have the same behaviour. One compiles, the other doesn't.

Maybe I am blinded by my work with this particular program, and the two
line are not identical and I can't see it, (I read them 1000 times :) ),
but this is soooo wild.

Just felt the need to let off some pressure.

Catalin

-- 
        <<<< ================================== >>>>
        <<     We are what we repeatedly do.      >>
        <<  Excellence, therefore, is not an act  >>
        <<             but a habit.               >>
        <<<< ================================== >>>>


Relevant Pages

  • Re: GetFontUnicodeRanges() will not compile
    ... This compiles and runs, but, it seems to tell me that every ... pasting is usually considered a bad ... LPGLYPHSET lpgs ... C2065: 'LPGLYPHSET': undeclared identifier ...
    (microsoft.public.vc.mfc)
  • Re: auto_ptr not recognised in smartphone project
    ... It compiles fine for PPC but i get the following error for Smartphone ... error C2065: 'auto_ptr': undeclared identifier ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: This is so wild!
    ... Doru-Catalin Togea wrote: ... > the second line, the program compiles fine, like this: ... > was the one that would not compile, and I have rebuild this initialization ... > but this is soooo wild. ...
    (comp.os.linux.development.apps)
  • Re: This is so wild!
    ... > It produces this error under compilation, as if the appropriate header ... > Now this is the wild part: If I uncomment the first line and comemnt out ... > the second line, the program compiles fine, like this: ... > but this is soooo wild. ...
    (comp.os.linux.development.apps)