dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #05269
Re: linking error
Ok I've found this:
http://www.fenics.org/pipermail/dolfin-dev/2006-November/003718.html
and now works (I've installed everything in the default paths).
Alessio
> You need to set the variable LD_LIBRARY_PATH to where you have
> installed the libdolfin.so.0 library.
>
> Where did you install it?
>
> /Anders
>
>
> On Fri, Jul 06, 2007 at 12:12:51PM +0200, Alessio Quaglino wrote:
>>
>> Ok I solved the linking problem. But now I get the following error
while running:
>>
>> ./dolfin-elasticity: error while loading shared libraries:
>> libdolfin.so.0:
>> cannot open shared object file: No such file or directory
>>
>> Regards,
>> Alessio Quaglino
>>
>>
>> > I've eventually converted my whole solver from python to C++, however
>> I
>> > get the following linking error when compiling:
>> >
>> > alessio@alessio-laptop:~/FEniCS/dolfin-stable/src/modules/elasticity-updated/demo$
make
>> > `pkg-config --variable=compiler dolfin` `pkg-config --cflags dolfin`
>> -c
>> > main.cpp
>> > `pkg-config --variable=compiler dolfin` -o dolfin-elasticity main.o
`pkg-config --cflags dolfin` `pkg-config --libs dolfin`
>> > main.o: In function `main':
>> > /home/alessio/FEniCS/dolfin-stable/src/modules/elasticity-updated/demo/main.cpp:74:
undefined reference to
>> > `dolfin::ElasticityUpdatedSolver::ElasticityUpdatedSolver(char*,
dolfin::Mesh&, dolfin::MySource&, double, double, double, double,
>> double,
>> > dolfin::MyBC&, double, dolfin::Function&, double, double, double)'
collect2: ld returned 1 exit status
>> > make: *** [dolfin-elasticity] Error 1
>> >
>> > from the line:
>> >
>> > ElasticityUpdatedSolver( i_str, mesh_list[i], f[i], E, nu, nuv,
>> nuplast,
>> > yld, bc[i], T, v0, rho, k, weight )
>> >
>> > and the constructor is defined as:
>> >
>> > ElasticityUpdatedSolver(char* tag, Mesh& mesh, MySource& f, real E,
>> real
>> > nu, real nuv, real nuplast, real yld, MyBC& bc, real T, Function& v0,
>> real
>> > rho, real k, real weight);
>> >
>> > I don't understant what could be wrong since main.cpp compiles right
against dolfin-elasticity but the constructor is not found. Thanks
for your patience.
>> >
>> > Regards,
>> > Alessio
>>
>>
>>
>>
>>
>> _______________________________________________
>> DOLFIN-dev mailing list
>> DOLFIN-dev@xxxxxxxxxx
>> http://www.fenics.org/mailman/listinfo/dolfin-dev
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>