Jump to content
Eternal Lands Official Forums
Nintenduh

Cannot compile CVS

Recommended Posts

I updated from CVS about 6 hours ago and received the same error I get now. I tried to tinker with it but I couldn't figure out what the issue was. I updated just now and tried again and I get....

 

text.o(.text+0x2a4): In function `send_input_text_line':
/home/nintenduh/elcvs/elc/text.c:141: undefined reference to `change_to_current_tab'
text.o(.text+0x2c0):/home/nintenduh/elcvs/elc/text.c:146: undefined reference to `change_to_current_chat_tab'
collect2: ld returned 1 exit status
make: *** [el.x86.linux.bin] Error 1

Share this post


Link to post
Share on other sites

Seems to be a problem with the multi-channel feature.

 

It will only compile if you define MULTI_CHANNEL:

 

Just edit the makefile and add -DMULTI_CHANNEL to the OPTIONS line

 

Old:

OPTIONS=-DLINUX -DELC

 

New:

OPTIONS=-DLINUX -DELC -DMULTI_CHANNEL

Share this post


Link to post
Share on other sites

I tried that but it still shows the same error.

 

I was able to compile it when I removed lines 137-149

 

switch(use_windowed_chat)
{
 case 1:
 	if(tabs[current_tab].channel != CHAT_ALL) {
   change_to_current_tab(line);
 	}
 break;
 case 2:
 	if(channels[active_tab].chan_nr != CHAT_ALL) {
   change_to_current_chat_tab(line);
 	}
 break;
}

I have a feeling somthing weird will happen if I enable windowed chat :devlish:

Edited by Nintenduh

Share this post


Link to post
Share on other sites

Im guessing that code was ment to be inside a #ifndef

Lachesis was assigned to the chat system, ill point it out and see whats up =)

Edited by Zep

Share this post


Link to post
Share on other sites
Im guessing that code was ment to be inside a #ifndef

Lachesis was assigned to the chat system, ill point it out and see whats up =)

184455[/snapback]

Fix committed.

Share this post


Link to post
Share on other sites

Hi, I'm back, and ... I'm only working on the lines offset :D Weird, I remember about that problem and I thought it already had been fixed, at least it worked for me .

Share this post


Link to post
Share on other sites
Hi, I'm back, and ... I'm only working on the lines offset :) Weird, I remember about that problem and I thought it already had been fixed, at least it worked for me .

184757[/snapback]

 

What Heu suggested worked for him but didnt work for me. I will update and try again.

 

Edit: moved text*.* to another folder, updated and was able to compile without any errors! :D

 

Thanks for all the help everyone!

Edited by Nintenduh

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×