This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem linking with ODBC


I'm getting undefined references when trying to link with libodbc32.a that 
comes with cygwin:

---

Building target: libTest.so
g++ -shared -o libTest.so testdb.o -lodbc32
testdb.o(.text+0x40): In function `_Z3foov':
/cygdrive/c/Projects/test/source/Debug/../testdb.cpp:7: undefined reference to 
`_SQLConnect'
collect2: ld returned 1 exit status
make: *** [libTest.so] Error 1

---

Any idea why _SQLConnect is unresolved?

Thanks,

-- da





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]