This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Can't compile simple C++ file
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: Can't compile simple C++ file
- From: "Mark Engelberg" <mark dot engelberg at bigfoot dot com>
- Date: Tue, 2 Nov 1999 16:09:11 -0800
Okay, here's the deal. I've got a fairly simple C++ file that compiles just
fine in Visual C++. It only uses standard C++ headers. I give the file to
someone using gcc on Linux, and he says it compiles fine with no changes
needed.
So I download cygwin, and try to compile my program, and in the link stage,
I get dozens of error messages saying that the linker can't find the
definition for standard stuff like iostreams. (Can someone please remind me
how to capture stderr so that I can read all these error messages without
them scrolling off the screen?)
I try to link explicitly to the stdc++ library, but it doesn't make a
difference. I download and install gcc 2.95, but it makes no difference.
HELP! Any idea what's going wrong?
Thanks,
Mark Engelberg
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com