Error compiling, local definition...?

All Helbreath Server Source Discussion here.
Post Reply
existone
just visiting
Posts: 6
Joined: Fri Jul 07, 2006 9:35 pm

Post by existone »

C:\Documents and Settings\fire\Desktop\a\a\Game.cpp(3958) : error C2601: 'OnMainLogSocketEvent' : local function definitions are illegal
C:\Documents and Settings\fire\Desktop\a\a\Game.cpp(3958) : fatal error C1903: unable to recover from previous error(s); stopping compilation

.... this is not making any sense.... I didn't change the definition of OnMainLogSocketEvent in game.h......?????? heres the code...

Code: Select all

	}
}

void CGame::OnMainLogSocketEvent(UINT message, WPARAM wParam, LPARAM lParam)
{
 int   iRet;
	
	if (m_pMainLogSock == NULL) return;

	iRet = m_pMainLogSock->iOnSocketEvent(wParam, lParam);

	switch (iRet) {
it has a problem with this portion.... specifically the { after lParam...... anyone know why this is? thanks....
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

What are you trying to compile, Post a link here, i'll download and Compile and see what pops up.
Tafka12
<3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

it means that

UINT message, WPARAM wParam, LPARAM lParam

these r wrong
or smth
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

I assume you made a function / alteration to the function above the one erroring? The problem's cause can variate but you probably placed a '{' or '}' too much?

Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
BlueChristmas
Loyal fan
Posts: 216
Joined: Wed Apr 19, 2006 12:19 am

Post by BlueChristmas »

Shetar wrote: I assume you made a function / alteration to the function above the one erroring? The problem's cause can variate but you probably placed a '{' or '}' too much?
that's what happens to me when i accidently make too many closing brackets }
the functions below become useless and error
<img src='http://img114.imageshack.us/img114/8618 ... 2dy3lx.jpg' border='0' alt='user posted image' />
existone
just visiting
Posts: 6
Joined: Fri Jul 07, 2006 9:35 pm

Post by existone »

thats exactly what happened, it was deeep within the function above i placed 1 too many } lol. thank you all for your help ;)
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

CLOSED.
Problem is solved, existone don't need this topic any more and if someone else needs it then make a new topic. Don't whine.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Post Reply