lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Can't compile due to unknown memory functions


From: qxc
Subject: [lwip-devel] Can't compile due to unknown memory functions
Date: Fri, 24 Feb 2012 16:32:40 +0100

Hi,

I've some troubles in compiling v1.4.0. I get several errors about unknown 
memory functions like

lwip-1.4.0/src/core/init.c:270: undefined reference to `mem_init'
lwip-1.4.0/src/core/init.c:271: undefined reference to `memp_init'
lwip-1.4.0/src/core/init.c:304: undefined reference to `sys_timeouts_init'

Now when I change my lwiopts.h and add a statement

#define MEM_LIBC_MALLOC             1

there, the erros change to

lwip-1.4.0/src/core/pbuf.c:286:17: error: implicit declaration of function 
'malloc'
lwip-1.4.0/src/core/pbuf.c:286:23: error: incompatible implicit declaration of 
built-in function 'malloc
lwip-1.4.0/src/core/pbuf.c:654:11: error: implicit declaration of function 
'free'
lwip-1.4.0/src/core/pbuf.c:654:11: error: incompatible implicit declaration of 
built-in function 'free'

What could be the reason for this? Which switches do I have to set to use 
malloc()/free() based memory functions?

Oxy


-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]