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 8190989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:48:43+00:00 2026-06-07T03:48:43+00:00

I am using cmake to compile code.In in ,i have used the SHARED option

  • 0

I am using cmake to compile code.In in ,i have used the SHARED option to create Shared Library.However ,on compiling using cmake I am getting the error :

 ADD_LIBRARY for library GenericUSMModules is used with the SHARED option, but the target platform supports only STATIC libraries. Building
 it STATIC instead. This may lead to problems.

 ADD_LIBRARY for library XXXaUSMModules is used with the SHARED option, but the target platform supports only STATIC libraries. Building
 it STATIC instead. This may lead to problems.

and it is creating libGenericUSMModules.a(Static library) and libXXXUSMModules.a instead of the so files. I want to know if it is possible to create Shared Library For each of the archive files(like libGenericUSMModules.so and libXXXUSMModules.a ) while linking it with a static library libGCVCore.a present in the same location.
Thanks

  • 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-07T03:48:44+00:00Added an answer on June 7, 2026 at 3:48 am

    The Problem was the cmake i was using.It was a old version.I Installed the latest version of the Cmake and the code compiled without any problem.

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

Sidebar

Related Questions

Something odd is happening. I have a static library, in C, compiled using CMake.
when compiling shared library which links boost and python libraries I receive error: /usr/bin/ld:
I have an c++ application developed using gcc(4.1) and compiled with CMAKE MakeFiles .
I am using CMake to build my project and I have the following line:
gcc 4.4.2 / Visual Studio C++ 2008 I have been using cmake on linux,
I want to run code which needs boost libraries. I built it using CMake.
I have downloaded mysql-connector-c-6.0.2. I build it using below commands: cmake -G Unix Makefiles
I have tried setting the debug flags using the set command in cmake but
I'm building some code using CMake that should be compiled against the ScriptingBridge .
I have the following code: int MimeDocument::GetAttachmentId( std::string const& content_id ) { using namespace

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.