This is so wild!
From: Doru-Catalin Togea (doru-cat_at_ifi.uio.no)
Date: 09/16/04
- Next message: Last2Know: "Re: This is so wild!"
- Previous message: Mike Cox: "Re: Linux runs on Toasters, XBoxes, cellphones..."
- Next in thread: Last2Know: "Re: This is so wild!"
- Reply: Last2Know: "Re: This is so wild!"
- Reply: Larry I Smith: "Re: This is so wild!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. >>
<<<< ================================== >>>>
- Next message: Last2Know: "Re: This is so wild!"
- Previous message: Mike Cox: "Re: Linux runs on Toasters, XBoxes, cellphones..."
- Next in thread: Last2Know: "Re: This is so wild!"
- Reply: Last2Know: "Re: This is so wild!"
- Reply: Larry I Smith: "Re: This is so wild!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|