Dear Yves,
Yes, that was the problem, thank you.
Now I'm still looking at the tutorial about Thermo-elastic
and electrical coupling (with MatLab it helped a lot and it
was very clear) and adding the code the single line
>> getfem::mesh mesh;
gives me theese errors:
C:\Users\cambi\AppData\Local\Temp\ccsXaSdU.o
prova1.cpp:(.text+0x285): undefined reference to
`getfem::mesh::mesh(std::string)'
C:\Users\cambi\AppData\Local\Temp\ccsXaSdU.o
prova1.cpp:(.text$_ZN5bgeot15block_allocator7dec_refEj[_ZN5bgeot15block_allocator7dec_refEj]+0x62):
undefined reference to
`bgeot::block_allocator::deallocate(unsigned int)'undefined
reference to `getfem::mesh::mesh(std::string)'
C:\Users\cambi\AppData\Local\Temp\ccsXaSdU.o
prova1.cpp:(.text$_ZN6getfem4meshD1Ev[_ZN6getfem4meshD1Ev]+0xbe):
undefined reference to
`getfem::context_dependencies::~context_dependencies()'
C:\Users\cambi\AppData\Local\Temp\ccsXaSdU.o
prova1.cpp:(.rdata$.refptr._ZTVN6getfem4meshE[.refptr._ZTVN6getfem4meshE]+0x0):
undefined reference to `vtable for getfem::mesh'
C:\Users\cambi\AppData\Local\Temp\ccsXaSdU.o
prova1.cpp:(.rdata$.refptr._ZN5bgeot22static_block_allocator6pallocE[.refptr._ZN5bgeot22static_block_allocator6pallocE]+0x0):
undefined reference to
`bgeot::static_block_allocator::palloc'.
I have to say I'm pretty new to C++, so I'm very confused:
shouldn't this line just define the existence of the mesh?
Thank you very much for your help and your time, it's much
appreciated.
Best Regards,
Nicolò Cambiaso