Static lib as project dependency of another linux app

Sysprogs forums Forums VisualGDB Static lib as project dependency of another linux app

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #864
    Lonko
    Participant

    Dear,

    i use the following scenario:
    1. i have a project for static library
    2. i have a project for linux application
    3. i use project dependency and include the static lib into my linux app
    4. i get link errors

    The link errors are because visualgdb adds in my case staticlib.a to the end of linking and i get all sorts of unresolved sybols (libdl, libcrypto….

    If i manualy move the custom static lib in front of all other shared or static libs then it works…

    So my question is, is my problem isolated or does Visualgdb has a problem with project dependency as it should probably automaticly put the static lib first in order…

    Best regards,
    Lonko

    #3271
    ket
    Participant

    Hi,

    VisualGDB uses grouping flags for libraries in its generated makefiles to avoid any dependency order issues. In your .mak files do you have the following specified?

    START_GROUP := -Wl,--start-group
    END_GROUP := -Wl,--end-group
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.