Thread: How to rebuild a library?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    78

    How to rebuild a library?

    Hi again!


    I would like to build upon one of my previous threads (Link), where the original problem has changed to a new one.

    I'm referring to the following lines of code:

    Code:
    mpi_kmeans_mex.$(SUFFIX):    libmpikmeans mpi_kmeans_mex.o 
        $(CC) mpi_kmeans_mex.o -shared -o mpi_kmeans_mex.$(SUFFIX) libmpikmeans.a $(MATLAB_LIB) 
    
    mpi_assign_mex.$(SUFFIX):    libmpikmeans mpi_assign_mex.o
        $(CC) mpi_assign_mex.o -shared -o mpi_assign_mex.$(SUFFIX) libmpikmeans.a $(MATLAB_LIB)
    My code is unable to run, since the existing library libmpikmeans.a and object file mpi_assign_mex.o (Linux) are not compatible with my system (Mac). Thus, they must be rebuilt-

    I've found a similar thread here, but I'm not sure how and where to implement this.
    Additionally, how do I rebuild .o files?


    Any suggestions?
    Last edited by in_ship; 09-17-2012 at 02:19 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-08-2012, 10:23 PM
  2. Static library vs Dynamic library
    By Alegomaster in forum C Programming
    Replies: 5
    Last Post: 03-17-2011, 07:26 PM
  3. Replies: 19
    Last Post: 01-12-2006, 11:04 AM
  4. How to rebuild class view data
    By VirtualAce in forum Windows Programming
    Replies: 2
    Last Post: 03-22-2005, 01:28 PM
  5. XML library
    By Massive in forum C Programming
    Replies: 9
    Last Post: 07-04-2003, 07:14 AM