linking troubles with Sun Workshop C++ 6.1

linking troubles with Sun Workshop C++ 6.1

Post by john prokope » Thu, 30 Aug 2001 10:22:38



I am having a little bit of trouble with my Workshop installation and
was wondering if someone could help.
I find that if I perform a complete build of my app, recompiling all
cpps, and link everything is great.
If I modify one file or a few and compile and link I end up with quite a
few unresolved externals.
I have turned off and on incremental linking and do not know what else
to look at. I am very new to development
in the Solaris environment and could use a hand. Others I work with, my
new colleagues, have given up and just
put up with the inconvenience. I'm new I dot' know any better :)

thanks, I appreciate the help

--
John D. Prokopek

 
 
 

linking troubles with Sun Workshop C++ 6.1

Post by Marvin Wolftha » Fri, 31 Aug 2001 01:56:59


It's almost  impossible to say without seeing your makefiles.
Are you running makedepend or the equivalent?

---------------------------------------------------------
Marvin Wolfthal
CGI  (617) 914-0317



> I am having a little bit of trouble with my Workshop installation and
> was wondering if someone could help.
> I find that if I perform a complete build of my app, recompiling all
> cpps, and link everything is great.
> If I modify one file or a few and compile and link I end up with quite a
> few unresolved externals.
> I have turned off and on incremental linking and do not know what else
> to look at. I am very new to development
> in the Solaris environment and could use a hand. Others I work with, my
> new colleagues, have given up and just
> put up with the inconvenience. I'm new I dot' know any better :)

> thanks, I appreciate the help

> --
> John D. Prokopek


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

1. Linking errors on SunOS 5.8 Sun WorkShop 6 update 1 Compilers C++

Could anyone help me to find out why the compiler complains about an
undefined symbol, which is actually defined within a namespace?
Thanks.

/directory1/d1.a
class T;

/directory2/d2.a
namespace N{
class A {
...
T* initialise();

/directory3
using namespace N;
class B:public A{
...

main()
{
B b;

CC -o target main.o B.o /d2/d2.a /d1/d1.a -lm -lsocket -lnsl -lrt
-lpthread
link error:
Undefined                       first referenced
 symbol                             in file
T* N::A::Initialise() /directory2/d2.a(A.o)

2. Max Harddisk für Sun Ultra 5

3. Sun C++ Workshop 4.2, bool and mutable

4. Downloading files in Win 98 for use in Linux

5. Wish to buy Sun Sparcworks/Workshop for C++

6. HELP!!! PS not work on my Solaris 2.3

7. undefined symbol ::__vtbl with Sun WorkShop 6 update 1 C++ Compiler (5.2)

8. Where to get Netscape 1.1 or up?

9. Problem with Sun Workshop C++ compiler

10. SUN Workshop C++ Compiler Error

11. Which STL for Sun Workshop C++ v4.2?

12. Sun's Visual Workshop C++ 3.0 Users ?

13. ppc: Sun WorkShop for C++ PowerPC Edition Early Access