---
title: "case Sn_MR_IPRAW: Compile error"
url: "https://maker.wiznet.io/forum/12387"
markdown_url: "https://maker.wiznet.io/forum/12387/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "Lee Trueman"
created: "2017-07-24T18:11:28+09:00"
last_activity: "2017-07-25T07:01:48+09:00"
language: "en"
views: 851
replies: 3
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# case Sn_MR_IPRAW: Compile error

## Question

Asked by Lee Trueman on 2017-07-24 in Ethernet Chips.

Just download the latest io_lib and there are compile errors in socket.c. I’m using W5500 and *WIZCHIP* is defined as 5500;

error: ‘Sn_MR_IPRAW’ undeclared (first use in this function)
case Sn_MR_IPRAW:

error: ‘SOCK_IPRAW’ undeclared (first use in this function)
if(tmp != SOCK_MACRAW && tmp != SOCK_UDP && tmp != SOCK_IPRAW) return SOCKERR_SOCKSTATUS;

## Replies

### Reply 1 by jim, 2017-07-25

Dear Lee_Trueman

I found errors.
Please change your code to the following.

w5500.h
…
`#define Sn_MR_IPRAW 0x03 /**< IP LAYER RAW SOCK */`
…
`#define SOCK_IPRAW 0x32 /**< IP raw mode socket */`
…

ioLibrary will be update later.

Thanks.

### Reply 2 by Lee Trueman, 2017-07-25 (in reply to reply 1)

Thanks Jim

On a porting note, i’m looking to use this with RTOS Chibios/RT, What would you suggest example wise as a guide ?

Or if you have a porting guiding even better ![:slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)

### Reply 3 by jim, 2017-07-25

Sorry, there is no example or porting guide for Chibios/RT.
I found RTOS examples in wizwiki and wiznetmuseum.
[http://wizwiki.net/wiki/doku.php?id=dev:coos&s\[\]=rtos](http://wizwiki.net/wiki/doku.php?id=dev:coos&s%5B%5D=rtos)
<http://wiznetmuseum.com/?s=RTOS>

Thanks.

---

Source: https://maker.wiznet.io/forum/12387
