Read-only archive of the All About Symbian forum (2001–2013) · About this archive

"illegal function overloading" error on symbian sockets

1 replies · 1,794 views · Started 29 October 2007

Hi all,
I got the strangest possible error message:

**********************************************
Path
(included from:[C:\Symbian\9.2\S60_3rd_FP1\EPOC32\include\e32cmn.h]
-------------------
Location
line 6009
-------------------
Creation Time
1193667485312
-------------------
Id
2789
**********************************************

BTW, I'm using Carbide 1.2 and S60 SDK (as you can see in the path)
Any idea what could be causing this message?
Also, I get more references to the same file(and line in it) souch as:

**********************************************
Path
C:\Symbian\9.2\S60_3rd_FP1\EPOC32\include\e32base.h:8[C:\Symbian\9.2\S60_3rd_FP1\EPOC32\include\e32cmn.h]
-------------------
Location
line 6009
-------------------
Creation Time
1193667485312
-------------------
Id
2791
**********************************************

And finally, I get:
**********************************************
Path
illegal function overloading[C:\Symbian\9.2\S60_3rd_FP1\EPOC32\include\e32cmn.h]
-------------------
Location
line 6009
-------------------
Creation Time
1193667485312
-------------------
Id
2788
**********************************************

Once I go to that line it says:
========
TBool operator==(TTrue,volatile const TBool); // e32cmn.h - line 6009
========
What could this mean? Does the compiler think that I overloaded the operator? Idon't think that I have because I

don't even use TBool in my project. The only line of my code that is mentioned in all of those errors is this one:
========
#include <in_sock.h> // Includes <es_sock.h>
========
and here is the error mesg:
**********************************************
Path
C:\VSS\SDKs\CrossPlatform\Network\pt_sockets\pcts_symbian.h:16[C:\Symbian\9.2\S60_3rd_FP1\EPOC32\include\e32cmn.h]
-------------------
Location
line 6009
-------------------
Creation Time
1193667485312
-------------------
Id
2794
**********************************************

Please help me resolve this...
Thanks in advance, elgrande

Actually the problem was with the linkage of some routines. Once they were set to be extern C everything started to build.

elgrande