Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cross compiling using Eclipse C/C++ CDT

Cross compiling using Eclipse C/C++ CDT

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++linux
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vijay Rajanna
    wrote on last edited by
    #1

    I am using a Windows host machine to cross compile programs on to a Linux RT platform using a GCC cross compiler. Assume, the C program I write, links to a shared library libShared.so as I am using functions defined in that library inside my program. In the Eclipse editor I am providing the library name (libshared.so), and its path under linker options. Now when I compile the program, I get compilation errors since libShared.so links to multiple other libraries (eg: lib11.so, lib12.so, lib13.so), but I am not explicitly calling any functions from these libraries. My question is, Why should the compiler generate errors, when I don't explicitly use functions defined in those libraries ? However when I specify the name and path of the libraries liked by libShared.so, the compilation passes.

    Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]

    C 1 Reply Last reply
    0
    • V Vijay Rajanna

      I am using a Windows host machine to cross compile programs on to a Linux RT platform using a GCC cross compiler. Assume, the C program I write, links to a shared library libShared.so as I am using functions defined in that library inside my program. In the Eclipse editor I am providing the library name (libshared.so), and its path under linker options. Now when I compile the program, I get compilation errors since libShared.so links to multiple other libraries (eg: lib11.so, lib12.so, lib13.so), but I am not explicitly calling any functions from these libraries. My question is, Why should the compiler generate errors, when I don't explicitly use functions defined in those libraries ? However when I specify the name and path of the libraries liked by libShared.so, the compilation passes.

      Regards, Vijay Blog : Amusement of a speculative mind...[^] Projects : Amusement of a dilettante mind...[^]

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      Quote:

      Why should the compiler generate errors, when I don't explicitly use functions defined in those libraries ?

      Because libShared does.

      THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?! -- C++ FQA Lite

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups