CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Posts
    105

    Question Static Linking of FLTK and Boost libraries? (Ubuntu)

    After getting the Cygwin version working (see this thread: http://www.codeguru.com/forum/showth...02#post2043002), I started to tackle the Ubuntu environment and failed spectacularly again. I am trying to compile my code with the FLTK and Boost libraries linked statically so the executable won't depend on the shared libraries. I am using NetBeans and g++ tools and got a ton of errors after setting the -static flag. Please help. Thanks!

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Static Linking of FLTK and Boost libraries? (Ubuntu)

    Did you build the static libraries of Boost?
    Do you have static libraries for FLTK?
    Maybe it would help if you paste the errors (or some of the errors) you are getting.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Nov 2010
    Posts
    105

    Re: Static Linking of FLTK and Boost libraries? (Ubuntu)

    I didn't build any of the library files. I just installed them from the Ubuntu repository. IIRC there are *.a and *.so files and I assumed one was static and the other dynamic. (In Cygwin the *.a files are static but I can't be sure that Ubuntu follow the same convention.) I will paste some errors later. Thank 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