CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

tcp/ip lean: miniature web server

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
feiutm9898



Joined: 01 Jun 2004
Posts: 3

View user's profile Send private message Send e-mail

tcp/ip lean: miniature web server
PostPosted: Tue Jun 01, 2004 11:23 am     Reply with quote

Hi.

I have problem to compile source code come with tcp/ip lean books.

I use pcm version 3.187 .

I fail to compile the source code for tcplean/pcm/picweb.c at CDROM

This source code is the first version of TCP/IP Lean for SLIP communication. Not "CHIPWEB" version.

The error is "invalid type conversion" at the variable

Do you try it? And can provide updated source code for me.

please help me!

the error at red color line

.
.
.
if (match_byte(0x45) && skip_byte() && // Version, service
get_word(iplen) && skip_word() && // Len, ID
skip_word() && skip_byte() && // Frags, TTL
get_byte(ipcol) && skip_word() && // Protocol, checksum
get_lword(remote.l) && get_lword(local.l) &&// Addresses
checkhi==0xff && checklo==0xff)
.
.
.


Last edited by feiutm9898 on Tue Jun 01, 2004 10:52 pm; edited 1 time in total
Chas
Guest







PostPosted: Tue Jun 01, 2004 11:56 am     Reply with quote

Check the FAQ for the compiler at the link below, and start with that:

http://www.ccsinfo.com/faq/?34
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 01, 2004 12:36 pm     Reply with quote

A similar problem was discussed on the Microchip forum.
One person, alesan, said he fixed the problem, though
he didn't say how. You could email him for the answer
if you join the Microchip forum.
http://forum.microchip.com/tm.asp?m=30649#35964
PedroMoreira
Guest







PostPosted: Sun Mar 06, 2005 12:53 pm     Reply with quote

I have the same problem...
anyone here can explain me how to fix this problem!!!!!?????
Guest








PostPosted: Sun Mar 06, 2005 10:52 pm     Reply with quote

The problem is the definition of data type LWORD for very old CCS version.

try ... get_lword(&remote.l) && get_lword(&local.l)
or ... get_lword(&remote) && get_lword( &local )

the argument of function get_lword() should be a pointer,
i.e. the ADDRESS of the variable

check p16_drv.h and p16_web.c, you will see ...

BOOL get_lword(LWORD &lw);

typedef union // Longword definition (not a native type)
{
BYTE b[4];
WORD w[2];
BYTE l;
} LWORD;


Best wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group