Mail Archives: cygwin/1999/12/12/14:53:03
Hi all!
I'm trying to build a dll to be called by VB6.0. I have compiled, working
command line program that was created by:
g++ -c aviscos.cc -g -I /usr/local/include -DX_DISPLAY_MISSING
...
g++ -o aviscos main.o hpenv.o hpoly.o cmdline.o rect.o aviscos.o -g -I
/usr/local/include -DX_DISPLAY_MISSING -L/usr/local/lib -lplot
when i try to compile it as a dll all hell breaks loose. I've been wresting
with this for a few days and i've been able to get a straight-C dll working
and callable with the same commands, but no success here.
i've got cygwin b-20.1 with mummit's gcc 2.95.2 the makefile is from his own
excel-dll example.
i've included the output below.
dllwrap --export-all --output-def aviscos.def --target=i386-mingw32 -mno-ygwin
--driver-name gcc -o aviscos.dll \
aviscos.o cmdline.o hpenv.o hpoly.o rect.o -I/mingw32/lib -s -lplot
-lstdc++ -liberty
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
aviscos.o: In function `plot_cmd(HPEnv &, basic_string<char,
string_char_traits<char>, __default_alloc_template<0, 0> > const &,
vector<basic_string<char, string_char_traits<char>,
__default_alloc_template<0, 0> >, allocator<basic_string<char,
string_char_traits<char>, __default_alloc_template<0, 0> > > > const &)':
/Development/Alex/aviscos/aviscos.cc:203: undefined reference to
`_impure_ptr'
/Development/Alex/aviscos/aviscos.cc:235: undefined reference to
`_impure_ptr'
aviscos.o: In function `convert_ps(char const *, char const *, char const
*)':
/Development/Alex/aviscos/aviscos.cc:788: undefined reference to
`_impure_ptr'
/Development/Alex/aviscos/aviscos.cc:788: undefined reference to
`_impure_ptr'
/usr/local/lib/libplot.a(api.o)(.text+0x319):api.c: undefined reference to
`_impure_ptr'
/usr/local/lib/libplot.a(api.o)(.text+0x6cb):api.c: more undefined references
to `_impure_ptr' follow
/usr/local/lib/libplot.a(m_textangle.o)(.text+0x101):m_textangle.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(m_textangle.o)(.text+0x2bf):m_textangle.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(m_space.o)(.text+0x14f):m_space.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(m_space.o)(.text+0x2ff):m_space.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(m_space.o)(.text+0x4bf):m_space.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(m_space.o)(.text+0x690):m_space.c: more undefined
references to `__swbuf' follow
/usr/local/lib/libplot.a(g_outbuf.o)(.text+0x159):g_outbuf.c: undefined
reference to `_impure_ptr'
/usr/local/lib/libplot.a(t_tek_vec.o)(.text+0x8a):t_tek_vec.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(t_tek_vec.o)(.text+0xcc):t_tek_vec.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(t_tek_vec.o)(.text+0x10f):t_tek_vec.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(t_tek_vec.o)(.text+0x152):t_tek_vec.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(t_tek_vec.o)(.text+0x18e):t_tek_vec.c: undefined
reference to `__swbuf'
/usr/local/lib/libplot.a(t_tek_vec.o)(.text+0x19f):t_tek_vec.c: more undefined
references to `__swbuf' follow
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iostream.o)(.text+0x145):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iostream.o)(.text+0x512):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iostream.o)(.text+0x17b7):
undefined reference to `_impure_ptr'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iostream.o)(.text+0x17c8):
undefined reference to `_impure_ptr'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(streambuf.o)(.text+0x3eb):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(stdstrbufs.o)(.text+0x49):
undefined reference to `_impure_ptr'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(stdiostream.o)(.text+0x16c):
undefined reference to `__srget'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(fileops.o)(.text+0x194):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(fileops.o)(.text+0x206):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(fileops.o)(.text+0x261):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(fileops.o)(.text+0x394):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(fileops.o)(.text+0x460):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(fileops.o)(.text+0x5c1):
more undefined references to `__errno' follow
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iovfscanf.o)(.text+0x61):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iovfscanf.o)(.text+0x8e):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iovfscanf.o)(.text+0x516):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iovfscanf.o)(.text+0x580):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iovfscanf.o)(.text+0x5cd):
undefined reference to `_ctype_'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(iovfscanf.o)(.text+0x863):
more undefined references to `_ctype_' follow
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(floatconv.o)(.text+0x12a5):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(floatconv.o)(.text+0x12ab):
undefined reference to `__infinity'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libstdc++.a(floatconv.o)(.text+0x1419):
undefined reference to `__errno'
/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/2.95.2/libgcc.a(_eh.o)(.text+0x389):
undefined reference to `_impure_ptr'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make: *** [aviscos.dll] Error 1
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -