[MOAB-dev] r5121 - in MOAB/trunk: . doc

Tim Tautges tautges at mcs.anl.gov
Mon Aug 29 15:05:07 CDT 2011


Hmm, this might have less to do with the fact you'd done a make install and more to do with the fact that I moved 
ProgOptions.hpp to a new location and maybe that required a 'make clean' to get things right?

- tim

On 08/29/2011 02:57 PM, Iulian Grindeanu wrote:
> Hello,
> It seems that I managed to build tools/mbzoltan/mbpart.
>
> So, after update, I was still getting those linking errors that I reported before.
> The way I "fixed" it :  instead of a "make", I did a "make install" at the root moab folder.
>
> This triggered a copy of the "updated" moab lib to the right (install) place (the one that contained ProgOptions class).
> Then all the tools were rebuild successfully.
>
> So I have this more basic question, how is this supposed to work correctly?
>
> Where was my mistake? Should I have made a distclean? or completely new build? how could I have avoided that linking error?
>
>
> So the ProgOptions was moved from tools library to moab library a few commits ago.
>
> In general, when we do "make" in moab, libraries are build first, then the tools/executables. It seems that initially, my executables were linking against old moab ( not the new one, that contained the ProgOptions).
>
> When I did "make install", the library was copied before trying to link the new executable (mbpart).
>
> Any comments?
>
> Thanks,
> Iulian
>
>
>> I still have other errors on mbzoltan (on 32 bit, with mpi, with
>> zoltan)
>> I don't know what is wrong there
>>
>> make[3]: Entering directory
>> `/home/iulian/source/MOABpv/tools/mbzoltan'
>> CXXLD mbpart
>> mbpart.o: In function `main':
>> /home/iulian/source/MOABpv/tools/mbzoltan/mbpart.cpp:43: undefined
>> reference to `ProgOptions::ProgOptions(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char>  >  const&,
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>  >
>> const&)'
>> /home/iulian/source/MOABpv/tools/mbzoltan/mbpart.cpp:43: undefined
>> reference to `ProgOptions::~ProgOptions()'
>> /home/iulian/source/MOABpv/tools/mbzoltan/mbpart.cpp:43: undefined
>> reference to `ProgOptions::~ProgOptions()'
>>
>> ....
>

-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
          phone: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



More information about the moab-dev mailing list