Linking the application to the SMA library
Link your application to the appropriate SMA driver library for your operating system, see
SMA components for details of the library.
Link your application to the SMA library file that is specific to your operating system (where ver is the solidDB version number):
▪ For Windows:
– If you are using a driver manager, link to ssolidsmaver.dll.
– If you are linking to the SMA driver directly, link to solidimpsma.lib (an import library file that gives you access to the .dll file).
For example, in the makefile example below, the solidimpsma.lib import library is used.
# compiler
CC =cl
compiler flags CFLAGS = -I. -DSS_WINDOWS -DSS_WINNT
linker flags and directives
SYSLIBS = libcmt.lib kernel32.lib advapi32.lib netapi32.lib user32.lib oldnames.lib gdi32.lib
LFLAGS = ..\solidimpsma.lib
OUTFILE = -Fe
# MyApp building
all: myapp
myapp: myapp.c
$(CC) $(CFLAGS) $(OUTFILE)myapp myapp.c /link$(LFLAGS)
/NODEFAULTLIB:libc.lib
▪ For Linux, Solaris, and AIX:
Link to the library ssolidsmaver.so.
For details about the location of these files, see
solidDB directory structure and contents.
See
Go up to