This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Update: perl-Win32-GUI, perl-libwin32
- From: Reini Urban <rurban at x-ray dot at>
- Cc: cygwin-apps at cygwin dot com
- Date: Wed, 02 Mar 2005 08:10:49 +0100
- Subject: Re: Update: perl-Win32-GUI, perl-libwin32
- References: <420ABE5E.9010600@x-ray.at> <420E898E.5040500@familiehaase.de> <20050213175003.GB1076@efn.org> <42108A40.204@x-ray.at> <4211C473.1090207@x-ray.at> <42163558.7010902@x-ray.at> <42221747.4000807@familiehaase.de> <42223BE1.2000205@x-ray.at> <4222ECC9.6080502@familiehaase.de> <42236076.4070500@x-ray.at> <42239040.6010105@familiehaase.de>
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