This is the mail archive of the mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: linking and iostreams

Greg Miller <> writes:
> This program:
> #include <iostream>
> int main() {
>   cout << "test" << endl;
>   return 0;
> }
> compiles, links, and does what I expect when compiled with B20.1 and
> egcs-1.1.1 using this command:
> g++ test.c
> but generates numerous undefined references during linking when compiled
> with:
> g++ -mno-cygwin test.c

Please see my howto[1] on -mno-cygwin option. This issue has been discussed
in detail in this group, so the search engine is also a good option.



Want to unsubscribe from this list?
Send a message to