473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

error C2365: 'formerly unknown identifier'

Hi,
Was wondering if anyone could help me with this odd error:
Am working in VS.Net Framework 1.1 C++.
I had a function defined as void colorizeImage(). I decided I didn't
need that function anymore and so renamed it to be void
filterTheImage(). The compiler comes back and gives me this message:
c:\...\klt.cpp(718): error C2365: 'filterTheImage' : redefinition;
previous definition was a 'formerly unknown identifier'.

If I name it back to the previous name (colorizeImage()) the compiler
is happy. I also tried to create a new function named
filterTheImage(), but the compiler sqwaks on this too. An
accompanying error is: c:\...\klt.cpp(205): error C3861:
'filterTheImage': identifier not found, even with argument-dependent
lookup
Any help would be much appreciated.

Thanks,

Beth
Nov 17 '05 #1
1 5802
AS far as I can see, you are using filterTheImage someplace in you code,
before it is declared, inwhich case the compiler take a guess at what the
signature would be. It then finds the actual declaration which is in
conflict to the guess it made (the compiler would assume that it returned
int instead of void)

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
"bmassey" <bm*****@acm.org> wrote in message
news:70**************************@posting.google.c om...
Hi,
Was wondering if anyone could help me with this odd error:
Am working in VS.Net Framework 1.1 C++.
I had a function defined as void colorizeImage(). I decided I didn't
need that function anymore and so renamed it to be void
filterTheImage(). The compiler comes back and gives me this message:
c:\...\klt.cpp(718): error C2365: 'filterTheImage' : redefinition;
previous definition was a 'formerly unknown identifier'.

If I name it back to the previous name (colorizeImage()) the compiler
is happy. I also tried to create a new function named
filterTheImage(), but the compiler sqwaks on this too. An
accompanying error is: c:\...\klt.cpp(205): error C3861:
'filterTheImage': identifier not found, even with argument-dependent
lookup
Any help would be much appreciated.

Thanks,

Beth

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
5
by: Sönke Tesch | last post by:
Hi everybody, I have a problem with the following piece of code: 141: /* A data block to manage a single log target: */ 142: typedef struct { 143: apr_reslist_t *dbs; /* connection pool */...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
7
by: GRoll35 | last post by:
I have 3 files here - Header/Implementation/Driver All it has to do is send the user's input (age)..to the class and the class will figure out the price of the ticket. I'm suppose to create the...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
6
by: Yan | last post by:
Here is the code: class A {}; void (A::*A) (); // Line 3 int main() { A a; // Line 6 return 0; }
6
by: Bobrick | last post by:
Hi. Thanks to everyone who replied to my last post, it turns out it wasn't the line where I was trying to treat the variable in question as an array which was the problem, but the line above. ...
25
by: notahipee | last post by:
I have been trying to cin an number from 0 to 9 with a leading 0. For example 00 or 07. I was using a switch case. switch (int) { case 01: break; case 02: break;..... My problem arises at 08...
6
by: muby | last post by:
Hi everybody :) I'm modifying a C++ code in VC++ 2005 my code snippet void BandwidthAllocationScheduler::insert( Message* msg, BOOL* QueueIsFull,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.