Lockless Inc

Windows Installation

Dynamic

To use the dynamic version of the Lockless memory allocator, you may want to first copy it to somewhere where your linker will find it.  Do this if you wish to avoid adding "-L" directory search options to your linker command line.  The best place to copy the library may be the object file or source directory you are using when you compile your programs.

Make sure to copy the correct library for your system.  Currently, 64bit versions of operating systems from Microsoft Vista and onward are supported.

Finally, to use the library, add the following to your linker compand line:
"/include:llalloc_use lldalloc.lib"

If you are using the Visual C++ IDE to compile your program, you can set this option for your project by going to the Project->"Property Pages" dialog box.  Select the "Linker" folder, and then the "Input" propery page.  Finally change the "Force Symbol References" property to "llalloc_use".

The forced import of the llalloc_use symbol will make sure that the Lockless allocator replaces the C runtime library version.  This is technically only required if you do not use any of the Lockless allocator functions that are not also defined in the C runtime library, such as memalign() or valloc() for example.  If you do use any non-crt allocator functions, then the forced symbol include will not be needed (but will not hurt either).

Including the lldalloc.lib import library in your project will cause your program to need the llalloc.dll dynamic library.  Make sure to copy this file to the other computers you own that you install your newly compiled program on.

Note that it is probably not wise to let the administrator run programs linked with the Lockless memory allocator.  The allocator is designed for speed, not security.

Static

To use the static version of the Lockless memory allocator, you may want to first copy it to somewhere where your linker will find it.  Do this if you wish to avoid adding "-L" directory search options to your linker command line.  The best place to copy the library may be the object file or source directory you are using when you compile your programs.

Finally, to use the library, add the following to your linker compand line:
"/include:llalloc_use llalloc.lib"

If you are using the Visual C++ IDE to compile your program, you can set this option for your project by going to the Project->"Property Pages" dialog box.  Select the "Linker" folder, and then the "Input" propery page.  Finally change the "Force Symbol References" property to "llalloc_use".

The forced import of the llalloc_use symbol will make sure that the Lockless allocator replaces the C runtime library version.  This is technically only required if you do not use any of the Lockless allocator functions that are not also defined in the C runtime library, such as memalign() or valloc() for example.  If you do use any non-crt allocator functions, then the forced symbol include will not be needed (but will not hurt either).  Note that the linker may output some warnings about duplicate symbols if you are compiling a C++ propgram, and use the new or delete operators.  These warnings are harmless.

Note that it is probably not wise to let the administrator run programs linked with the Lockless memory allocator.  The allocator is designed for speed, not security.

About Us Returns Policy Privacy Policy Send us Feedback
Company Info | Product Index | Category Index | Help | Terms of Use
Copyright © Lockless Inc All Rights Reserved.