The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PING - Unknown host 127.0.0.1, Unknown host localhost - Solaris 10 Przemek SUN Solaris 4 05-25-2008 09:11 PM
pseudo: [ID 129642 kern.info] pseudo-device: vol0 mndavies SUN Solaris 0 02-13-2008 07:21 PM
Unknown File Type error rohitsz SUN Solaris 3 07-15-2007 02:57 PM
bothered by bsd-gw[ID] lpr.error unknown printer (laser1) kicko SUN Solaris 2 02-06-2006 04:59 AM
unknown error message "sh: No: not found" cindytucci UNIX for Advanced & Expert Users 2 07-26-2005 09:44 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-13-2006
Registered User
 

Join Date: May 2006
Location: Ames, IA
Posts: 9
Error: unknown pseudo-op: `.weakref'

It's really strange that I have these error messages as follows when I tried to compile the C++ program.

g++ -c -pipe -DOpenModeType=std::_Ios_Openmode -g -I. -o Obj/NP_genome_info.o NP_genome_info.cpp
{standard input}: Assembler messages:
{standard input}:10: Error: unknown pseudo-op: `.weakref'
{standard input}:11: Error: unknown pseudo-op: `.weakref'
{standard input}:12: Error: unknown pseudo-op: `.weakref'
{standard input}:13: Error: unknown pseudo-op: `.weakref'
{standard input}:14: Error: unknown pseudo-op: `.weakref'
{standard input}:15: Error: unknown pseudo-op: `.weakref'
{standard input}:16: Error: unknown pseudo-op: `.weakref'
{standard input}:17: Error: unknown pseudo-op: `.weakref'
{standard input}:18: Error: unknown pseudo-op: `.weakref'
{standard input}:19: Error: unknown pseudo-op: `.weakref'
{standard input}:20: Error: unknown pseudo-op: `.weakref'
{standard input}:21: Error: unknown pseudo-op: `.weakref'
{standard input}:22: Error: unknown pseudo-op: `.weakref'

I have no idea what is wrong. Is it due to my program or something else. I hop it the latter.

Thank you very much.
Reply With Quote
Forum Sponsor
  #2  
Old 06-15-2006
Registered User
 

Join Date: May 2006
Posts: 101
i guess you are using the lastest gcc (please post gcc --version next time). but i thing your bug is know already. please check this:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26966
Reply With Quote
  #3  
Old 06-15-2006
Registered User
 

Join Date: May 2006
Location: Ames, IA
Posts: 9
Error: unknown pseudo-op: `.weakref'

I checked the version of gcc.

Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)


The link you gave me is a little overwheming to me. Sorry, I'm a beginner.
Reply With Quote
  #4  
Old 06-15-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
this link suggests you need a newer version of binutils.
Reply With Quote
  #5  
Old 06-15-2006
Registered User
 

Join Date: May 2006
Location: Ames, IA
Posts: 9
Error: unknown pseudo-op: `.weakref'

Thank you very much.

One thing I don't understand is that why it just appears to have a problem of 'old version' now because it worked fine last week.

Also, where can I find/download the newer 'binutils'?
Can I just update the 'binutils' on top of the current version of 'Redhat'?

Sorry for a little naive question.
Reply With Quote
  #6  
Old 06-15-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 979
Quote:
Originally Posted by napapanbkk
Thank you very much.

One thing I don't understand is that why it just appears to have a problem of 'old version' now because it worked fine last week.
The exact same code, worked fine last week? Or different code worked fine? The weakrefs thing has to do with using a nonstandard feature in a slightly nonstandard way.
Quote:
Also, where can I find/download the newer 'binutils'? Can I just update the 'binutils' on top of the current version of 'Redhat'?
Redhat uses RPM packages to install and upgrade software. The command for installing these packages is 'rpm', see 'man rpm' for details. You can find these packages with http://rpmfind.net/ . the binutils package is called, bafflingly, 'binutils'.
Reply With Quote
  #7  
Old 06-16-2006
Registered User
 

Join Date: May 2006
Location: Ames, IA
Posts: 9
Thank you so much for your great help.

Quote:
The exact same code, worked fine last week? Or different code worked fine? The weakrefs thing has to do with using a nonstandard feature in a slightly nonstandard way.
Yes, exactly the same code, same program. Strange, isn't it?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0