• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Makefile experts. help!

 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to generate .o first, then executable or shared library (.so).

I can produce a shared library (.so) by using makefile. However, when I tried to generate .o first, then .so, I encountered many multi-definition errors, a long list! Don't know why.

Can some makefile experts explain possible "why" or provide me a relative complicated with multi-directory inter-dependencies makefile example? C or C++

One file, not the VC or Eclipse generated 25 files or more. BTW, I am on Linux.

Huge Thanks!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic