LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2006, 01:03 AM   #1
manikan
LQ Newbie
 
Registered: Feb 2006
Posts: 12

Rep: Reputation: 0
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
 
Old 02-17-2006, 01:18 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin garyozzy General 1 01-05-2006 04:55 PM
cygwin zchoyt Linux - General 1 08-24-2005 01:03 PM
Cygwin help Whipl50 Linux - General 0 05-12-2005 03:57 PM
CygWin SpEcIeS Linux - General 1 02-17-2005 03:52 PM
i need help with cygwin Paxmaster Linux - Software 2 09-08-2004 06:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration