* cygwin errors
@ 1999-11-04 17:30 Inferno
1999-11-30 23:28 ` Inferno
0 siblings, 1 reply; 2+ messages in thread
From: Inferno @ 1999-11-04 17:30 UTC (permalink / raw)
To: help-gcc
I have tried several suggestions to fix cygwin's -mno-cygwin problems
with no luck. I have attached a script of what i have tried. If you
have any suggestions please let me know. As can be seen I have tried
the -L, -I, and -B options with no luck.
Thanks,
Inferno
--
"Life is the whim of several billion cells to be you for a while."
--Inferno
# script
bash: script: command not found
# cat test.cpp
#include <iostream.h>
void main()
{
cout << "Test" << endl;
}
# c++ test.cpp
# a.exe
Test
# c++ -c -mno-cygwin -I/usr/local/mingw/include test.cpp
# c++ -o test -mno-cygwin -L/usr/local/mingw/lib test.o
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2990): multiple
definition of `ostream::operato
r<<(ostream &(*)(ostream &))'
test.o(.text$__ls__7ostreamPFR7ostream_R7ostream+0x0):test.cpp: first
defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1d70): multiple
definition of `_IO_ostream_with
assign type_info function'
test.o(.text$__tf22_IO_ostream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1eac): multiple
definition of `_IO_istream_with
assign type_info function'
test.o(.text$__tf22_IO_istream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x22f4): multiple
definition of `iostream type_in
fo function'
test.o(.text$__tf8iostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x28ac): multiple
definition of `istream type_inf
o function'
test.o(.text$__tf7istream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2bf8): multiple
definition of `ostream type_inf
o function'
test.o(.text$__tf7ostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0x714): multiple
definition of `filebuf type_inf
o function'
test.o(.text$__tf7filebuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xb90): multiple
definition of `streambuf type_i
nfo function'
test.o(.text$__tf9streambuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xe10): multiple
definition of `ios type_info fu
nction'
test.o(.text$__tf3ios+0x0):test.cpp: first defined here
/H-i586-CYGWIN32/lib/gcc-lib/i586-cygwin32/2.95.1/libgcc.a(_eh.o): In
function `_eh_rtime_match':
/d/cygnus/cygwin-b20/root/gcc-2.95.1/obj/gcc/../../gcc/libgcc2.c(.text+0x385):
undefined reference t
o `_impure_ptr'
collect2: ld returned 1 exit status
# c++ -o test -mno-cygwin -L/usr/local/mingw/lib -B/usr/local/mingw/lib/
test.o
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2990): multiple
definition of `ostream::operato
r<<(ostream &(*)(ostream &))'
test.o(.text$__ls__7ostreamPFR7ostream_R7ostream+0x0):test.cpp: first
defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1d70): multiple
definition of `_IO_ostream_with
assign type_info function'
test.o(.text$__tf22_IO_ostream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1eac): multiple
definition of `_IO_istream_with
assign type_info function'
test.o(.text$__tf22_IO_istream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x22f4): multiple
definition of `iostream type_in
fo function'
test.o(.text$__tf8iostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x28ac): multiple
definition of `istream type_inf
o function'
test.o(.text$__tf7istream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2bf8): multiple
definition of `ostream type_inf
o function'
test.o(.text$__tf7ostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0x714): multiple
definition of `filebuf type_inf
o function'
test.o(.text$__tf7filebuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xb90): multiple
definition of `streambuf type_i
nfo function'
test.o(.text$__tf9streambuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xe10): multiple
definition of `ios type_info fu
nction'
test.o(.text$__tf3ios+0x0):test.cpp: first defined here
/H-i586-CYGWIN32/lib/gcc-lib/i586-cygwin32/2.95.1/libgcc.a(_eh.o): In
function `_eh_rtime_match':
/d/cygnus/cygwin-b20/root/gcc-2.95.1/obj/gcc/../../gcc/libgcc2.c(.text+0x385):
undefined reference t
o `_impure_ptr'
collect2: ld returned 1 exit status
c++: file path prefix `/usr/local/mingw/lib/' never used
#
^ permalink raw reply [flat|nested] 2+ messages in thread
* cygwin errors
1999-11-04 17:30 cygwin errors Inferno
@ 1999-11-30 23:28 ` Inferno
0 siblings, 0 replies; 2+ messages in thread
From: Inferno @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
I have tried several suggestions to fix cygwin's -mno-cygwin problems
with no luck. I have attached a script of what i have tried. If you
have any suggestions please let me know. As can be seen I have tried
the -L, -I, and -B options with no luck.
Thanks,
Inferno
--
"Life is the whim of several billion cells to be you for a while."
--Inferno
# script
bash: script: command not found
# cat test.cpp
#include <iostream.h>
void main()
{
cout << "Test" << endl;
}
# c++ test.cpp
# a.exe
Test
# c++ -c -mno-cygwin -I/usr/local/mingw/include test.cpp
# c++ -o test -mno-cygwin -L/usr/local/mingw/lib test.o
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2990): multiple
definition of `ostream::operato
r<<(ostream &(*)(ostream &))'
test.o(.text$__ls__7ostreamPFR7ostream_R7ostream+0x0):test.cpp: first
defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1d70): multiple
definition of `_IO_ostream_with
assign type_info function'
test.o(.text$__tf22_IO_ostream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1eac): multiple
definition of `_IO_istream_with
assign type_info function'
test.o(.text$__tf22_IO_istream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x22f4): multiple
definition of `iostream type_in
fo function'
test.o(.text$__tf8iostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x28ac): multiple
definition of `istream type_inf
o function'
test.o(.text$__tf7istream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2bf8): multiple
definition of `ostream type_inf
o function'
test.o(.text$__tf7ostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0x714): multiple
definition of `filebuf type_inf
o function'
test.o(.text$__tf7filebuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xb90): multiple
definition of `streambuf type_i
nfo function'
test.o(.text$__tf9streambuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xe10): multiple
definition of `ios type_info fu
nction'
test.o(.text$__tf3ios+0x0):test.cpp: first defined here
/H-i586-CYGWIN32/lib/gcc-lib/i586-cygwin32/2.95.1/libgcc.a(_eh.o): In
function `_eh_rtime_match':
/d/cygnus/cygwin-b20/root/gcc-2.95.1/obj/gcc/../../gcc/libgcc2.c(.text+0x385):
undefined reference t
o `_impure_ptr'
collect2: ld returned 1 exit status
# c++ -o test -mno-cygwin -L/usr/local/mingw/lib -B/usr/local/mingw/lib/
test.o
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2990): multiple
definition of `ostream::operato
r<<(ostream &(*)(ostream &))'
test.o(.text$__ls__7ostreamPFR7ostream_R7ostream+0x0):test.cpp: first
defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1d70): multiple
definition of `_IO_ostream_with
assign type_info function'
test.o(.text$__tf22_IO_ostream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x1eac): multiple
definition of `_IO_istream_with
assign type_info function'
test.o(.text$__tf22_IO_istream_withassign+0x0):test.cpp: first defined
here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x22f4): multiple
definition of `iostream type_in
fo function'
test.o(.text$__tf8iostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x28ac): multiple
definition of `istream type_inf
o function'
test.o(.text$__tf7istream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(iostream.o)(.text+0x2bf8): multiple
definition of `ostream type_inf
o function'
test.o(.text$__tf7ostream+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0x714): multiple
definition of `filebuf type_inf
o function'
test.o(.text$__tf7filebuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xb90): multiple
definition of `streambuf type_i
nfo function'
test.o(.text$__tf9streambuf+0x0):test.cpp: first defined here
/usr/local/mingw/lib/libstdc++.a(streambuf.o)(.text+0xe10): multiple
definition of `ios type_info fu
nction'
test.o(.text$__tf3ios+0x0):test.cpp: first defined here
/H-i586-CYGWIN32/lib/gcc-lib/i586-cygwin32/2.95.1/libgcc.a(_eh.o): In
function `_eh_rtime_match':
/d/cygnus/cygwin-b20/root/gcc-2.95.1/obj/gcc/../../gcc/libgcc2.c(.text+0x385):
undefined reference t
o `_impure_ptr'
collect2: ld returned 1 exit status
c++: file path prefix `/usr/local/mingw/lib/' never used
#
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-30 23:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-04 17:30 cygwin errors Inferno
1999-11-30 23:28 ` Inferno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).