LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Error while linkling in Cygwin (https://www.linuxquestions.org/questions/programming-9/error-while-linkling-in-cygwin-416363/)

manikan 02-17-2006 01:03 AM

Error while linkling in Cygwin
 
Hi,

When i try to compile a .cc file in Cygwin using g++ i get the following errors.

Can anybody what may be the cause for these errors.The error is hapening while linking.How can we rectify this error.

bash-2.05b$ g++ mani.cc
In file included from /usr/include/c++/3.3.3/backward/iostream.h:31,
from mani.cc:1:
/usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status

Regards
Mani

spooon 02-17-2006 01:18 AM

Quote:

Originally Posted by manikan
/usr/include/c++/3.3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.

This is a warning (not error) because you are using the nonstandard <iostream.h> when you are supposed to use the proper <iostream>.

Quote:

Originally Posted by manikan
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status

This is the real error; check to see if you have this library or something.


All times are GMT -5. The time now is 01:07 PM.