Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7798489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:01:18+00:00 2026-06-02T00:01:18+00:00

Describe how to compile getoptpp as shaded library from my own GNU Makefile and

  • 0

Describe how to compile “getoptpp” as shaded library from my own GNU Makefile and static link it to my program?

What I do:

At my program directory I unarchived getoptpp library to subdirectory with the same name.
than added new target to my Makefile: (README say I used SHARED flag to make. $> make SHARED=n)

getoptpp:
     cd getoptpp; $(MAKE) SHARED=n 

than I added this target to list of requested targets of my program:

 myprogram: getoptpp
     g++ **** myprogram

but after calling make myprogram – no new .so created at all.
when calling “make getoptpp” – make say ‘is up to date’

*ADDED: after suggestion of .PHONY there is an error *

cd getoptpp; make SHARED=n
"Makefile", line 15: Missing dependency operator
"Makefile", line 19: Need an operator
"Makefile", line 24: Need an operator
"Makefile", line 45: Missing dependency operator
"Makefile", line 47: Need an operator
make: fatal errors encountered -- cannot continue
*** Error code 1

http://code.google.com/p/getoptpp/

OR

Please, suggest pretty nice command line parsing library for my c++ program. That I can simple compile as .o object that link to my program. No Boost!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:01:20+00:00Added an answer on June 2, 2026 at 12:01 am

    The directory exists and is not updated, so yes, it is up to date. Perhaps you want to declare it as a dependency of .PHONY.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Describe the output of the following SQL query: select custId, name from customer where
I'm using NUnit 2.5 and NAnt 0.85 to compile a .NET 3.5 library. Because
I have the following problem, will try to describe it shortly. In my program
Describe please a typical lifecycle of a Hibernate object (that maps to a db
How to describe this in description logic? every human is either male or female
Can anyone describe the following php function: function get_setting_value($settings_array, $setting_name, $default_value = ) {
Can anyone describe the difference in behavior between BOOST_CHECK_CLOSE and BOOST_CHECK_CLOSE_FRACTION ? The documentation
I'll try to describe the situation. We have a web service; on each request
How can you describe the parameters and return type (getter/setter) of your PHP functions?
Weird to describe but here goes. I have a table with several rows. One

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.