lua-users home
lua-l archive

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


Those warnings are indeed because there is no prototype anywhere for those
functions, since they don't exist (I'm guessing. Perhaps in a different
header file, or something). Even if it compiles, it's unlikely to link, or
run, if it dynamically links at runtime.

For these particular instances, I think if you look through the relevant
source file, you'll find that the function is only used by a function that
the library is exposing to lua. In this case, commenting those out should be
ok. For most, that is ok, since you don't need any of the 4 functions
mentioned here to work. For other things in stdio, like printf and such,
you'll likely have to write your own version of those functions to do output
to a window or something similiar.

Hope that helps some.

----- Original Message -----
From: "Mohammad Zubair" <mzubair@softhome.net>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Monday, July 01, 2002 9:08 PM
Subject: Compiling for WinCE/PocketPC


> Hello folks,
>
>
> To those who has ported LUA to CE before, how'd you resolve the
> following warnings?
>
> warning C4013: 'system' undefined; assuming extern returning int
> warning C4013: 'remove' undefined; assuming extern returning int
> warning C4013: 'rename' undefined; assuming extern returning int
> warning C4013: 'tmpnam' undefined; assuming extern returning int
>
> And a couple of others, mostly related to STDIO.H (which is missing
> in WinCE).
>
> I am able to compile but I'm sure those warnings above would prove
> fatal later....
>
> Thanks
>
> Regards
>
>