change odbc library from -lodbc to -lodbc32 and add -no-undefined to library