This is the mail archive of the cygwin-apps@cygwin.com 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]

Re: Update: perl-Win32-GUI, perl-libwin32


Gerrit P. Haase schrieb:
Reini Urban wrote:
Gerrit P. Haase schrieb:
gcc -shared -o ODBC.dll -Wl,--out-implib=libODBC.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib CMom.o Constant.o CResults.o ODBC.o Odbc.res /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/lib/w32api -lnetapi32 -lwininet -lversion -lmpr -lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 -loleaut32 -luuid -lcomctl32 -lgdi32 -lcomdlg32 -lntdll
Creating library file: libODBC.dll.a
ODBC.o(.text+0x85e6):ODBC.cpp: undefined reference to `_SQLGetPrivateProfileString'
ODBC.o(.text+0x8bd2):ODBC.cpp: undefined reference to `_SQLGetPrivateProfileString'
ODBC.o(.text+0x1100d):ODBC.cpp: undefined reference to `_SQLConfigDataSource'
collect2: ld gab 1 als Ende-Status zur"uck
perlld: *** system() failed to execute
gcc -shared -o ODBC.dll -Wl,--out-implib=libODBC.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib CMom.o Constant.o CResults.o ODBC.o Odbc.res /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/lib/w32api -lnetapi32 -lwininet -lversion -lmpr -lodbc32 -lodbccp32 -lwinmm -lstdc++ -lole32 -loleaut32 -luuid -lcomctl32 -lgdi32 -lcomdlg32 -lntdll

Hmm, -lodbccp32 (=> /lib/w32api/libodbccp32.a) should import those.
Do you miss that? This was last changed 3 years ago. The very first w32api version.
http://cvs.sourceforge.net/viewcvs.py/mingw/w32api/lib/


Or maybe you miss ODBCCP32.dll in $WINDIR/System32?


$ nm /lib/libodbccp32.a | grep ' _SQL'
nm: '/lib/libodbccp32.a': No such file

I have the import library in the right place:
$ nm /lib/w32api/libodbccp32.a | grep ' _SQL'
00000000 T _SQLGetPrivateProfileString@24
00000000 T _SQLConfigDataSource@16

So this should be found by the linker.


Maybe the -L/usr/local/lib hurts you?
Is there another -lodbccp32?
Maybe a clash with iodbcunix?

Which version of gcc are you using?

3.3.3



-- Reini Urban http://xarch.tu-graz.ac.at/home/rurban http://phpwiki.org


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