Hi.
I am allmost new to pelles c. I did some simple console programs in pelles c long time ago. But i am still a beginner in c.
Now i tried to compile the newest lua sources to get a simple lua interpreter running. (using PellesC/64bit)
sources at
http://www.lua.org/ftp/lua-5.2.2.tar.gz1st i tried to compile the lua dll:
- new project: dll64
- inserted all c-files to the project (except lua.c & luac.c)
ok (with
options/compiler/use_ms_extensions=on)
switching
options/compiler/use_ms_extensions=off results in a error:
C:\Program Files\PellesC\Include\Win\winnt.h(559): fatal error #1014: #error: "No target architecture".
Why?
so i kept
options/compiler/use_ms_extensions=on and i got a compiled dll file without errors.
next step: try to make the lua.exe file:
- new project: win64 console app
- added lua.c as sourcefile
- same compiler options as for the dll:
options/compiler/use_ms_extensions=ond:\Pelles C Projects\lua522\lua.c(178): warning #2145: Assignment of 'void __fastcall function(int)' to 'void __cdecl function(int)'.
d:\Pelles C Projects\lua522\lua.c(480): warning #2203: Function 'main' can't be __fastcall, changed to __cdecl.
- switching
options/compiler/use_ms_extensions=off eliminites those 2 warnings but my exe cant probably load the dll ?
And i got many unresolved external symbols defined in the dll. How to link the dll-infos into my exe-project?
i tried to compile the lua-interpreter statically into my exe. I got errors too. I dont know it is possible without hacking the orginal lua source files)
Thanks a lot for your help.