[info-performer] Solution to Problem(s) compiling with CC using SGI STL

Date view Thread view Subject view Author view

From: Carlos Delgado (C.Delgado++at++pgr.salford.ac.uk)
Date: 04/14/2004 08:28:28


Hi Geoffrey,

I have been getting this question asked quite often, so I will reply to
the performer mail list aswell; maybe another person will find it
useful. The thing is, that I have answered individually, but no-one
tells me if it worked for them.

So, if it works for you, can you send an email to me (and to the list) ?

The silly mistake I refered to: is that whilst creating a library, I
listed a binary file ( .o) twice.

I also had another problem, but since then, I managed to sort it out.
Maybe this could be useful for you.

1. I am using CC v 7.3 now
2. use the -LANG:std flag when compiling
3. Downloaded STL v 3.3 from http://www.sgi.com/tech/stl/download.html
and then use a flag for the directory where you untarred it. like
-I/home/me/programming/stl
4. Use the -n32 flag
5. For the libraries directory use the -L/usr/lib32 flag

Bizarrely after I sorted this out, sometime later it didn't work again!.
So I sorted it out again (after the silly mistake e-mail, that is). I
solved the issue by calling the pre-linker explicitly.

I added something like this in my Makefile to create my library.

PRELINKER=/usr/lib/DCC/edg_prelink

${LIBFILE_INT}: ${OBJECTS}
        ${PRELINKER} ${OBJECTS} -lXMLParser
        ${AR} -cr ${LIBFILE_INT} ${OBJECTS}

Hope that you (and other people) find this useful
Carlos

cerna jeff wrote:

> Hi Carlos,
>
> You wrote on http://oss.sgi.com/ a post that describes precisely the
> problem I encounter when compiling a program using the SGI STL with CC
> on IRIX ( see
> http://oss.sgi.com/projects/performer/mail/info-performer/perf-03-07/0043.html
> )
>
> You auto-replied to your post that you had made a 'silly mistake'...
> Unfortunately, you do not describe this 'silly error'.
> What was this error you made ? ;-)
>
> Well... It was a couple of months ago but perhaps you will remember...
> ;-)
> It would be helpful for me, in any case !
>
>
> thx in advance,
>
> Geoffrey
>
> _________________________________________________________________
> Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551
>
>
>

-- 
Carlos Delgado                                 ~~~~~
Centre for Virtual Environments               (\o o/)
The University of Salford           ___________ ¦!¦ _______________
Business House M5 4WT, U.K.       ¦"Inspiration exists, but it has ¦
(44) +161 295 2918                ¦ to find us working" --Picasso  ¦
Fax (44) + 161 295 2925            ________________________________
web http://www.nicve.salford.ac.uk/carlos


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Apr 14 2004 - 08:33:29 PDT