homepage needs an update

Notices and updates
Locked
HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

homepage needs an update

Post by HPW »

Note, that the Win32 version of newLISP uses standard call (_stdcall) conventions to call DLL library routines. This is necessary to call DLLs belonging to the Win32 operating system like odbc32.dll. Most third party DLL's are compiled for 'C' declaration (_cdecl) conventions and may need wrapper DLL's. newLISP compiled for LINUX and other UNIX uses the _cdecl calling conventions and will not have this problem.

A future version of newLISP will allow both calling conventions on Win32.
With 7.500 the future has happened and the homepage needs an update.

:-)
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

In practice you have to do sometimes some experimenting to find out, what is working and what not. I.E. SQLite wants "cdecl" but everything shipped with WinXP seems to be stdcal. Some functions on Windows and CYGWIN libraries work with both! calling conventions.

But there are also libraries which have problems. 'zlib.dll' from zlib.org works fine on the newLISP commandline with "cdecl", but certain functions mess up the stack when you call them from inside other newLISP functions.

MySQL, ODBC, SQLite and LWneuralnet (a newLISP inteface is in the works) seem to be rock solid and never have given me any problems.

Lutz

Locked