Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > cc error: "Can't emit reloc {- symbol "L9$pb"}... "

cc error: "Can't emit reloc {- symbol "L9$pb"}... "
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 22, 2000, 01:32 PM
 
hi, while trying to compile a large chunk of code I ran into this problem which left me clueless... Does anybody know the cause and/or a fix/workaround?
/P


[~/Octave/liboctave] % gnumake
c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall Array-C.cc
/var/tmp/cc016196.s:unknown:Can't emit reloc {- symbol "L50$pb"} @ file address 43720.
/var/tmp/cc016196.s:unknown:Can't emit reloc {- symbol "L50$pb"} @ file address 43716.
... some 20 lines or so removed ...
/var/tmp/cc016196.s:unknown:Can't emit reloc {- symbol "L9$pb"} @ file address 732.
/var/tmp/cc016196.s:unknown:Can't emit reloc {- symbol "L9$pb"} @ file address 728.
gnumake: *** [Array-C.o] Error 1

gnumake CXXFLAGS='-O2 -Wall' etc. returns the same result.
     
John Heitmann
Guest
Status:
Reply With Quote
Oct 23, 2000, 01:33 AM
 
This most commonly happes if you try to compile code which has static variables used within a class method. Move the static variable up to class scope rather than function scope and see if this fixes your problem.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2