CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002
    Posts
    42

    Is this the right way to creat library file(.so) in Solaris?

    g++ -o my.so *.cxx

    Thanks

  2. #2
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    Usually, each module has to be compiled with the -fPIC flag.
    Then you make the shared library from all object files while you
    link.

    If you still have a problem, do a search on google for something
    like:
    g++ "shared library" "how to" solaris
    That's bound to help you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured