andrewhwood / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

linker errors when compiling test code #235

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Please see the attached makefile, I am trying to run the following code - just 
the read method for now, 

http://code.google.com/p/alembic/wiki/CookingWithAlembic

It compiled ok, but errors out on linking... am I setting up the makefile 
incorrectly ? 

It errors out when I add this line:
IArchive archive( Alembic::AbcCoreHDF5::ReadArchive(),"alembic_octopus.abc", 
Alembic::Abc::ErrorHandler::kThrowPolicy );

An example error:
/var/tmp/ccg3Rmfa.o: In function 
`Alembic::Abc::v1::IArchive::IArchive<Alembic::AbcCoreHDF5::v1::ReadArchive>(Ale
mbic::AbcCoreHDF5::v1::ReadArchive, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
Alembic::Abc::v1::ErrorHandler::Policy, 
boost::shared_ptr<Alembic::AbcCoreAbstract::v1::ReadArraySampleCache>)':
testAlembic.cpp:(.text._ZN7Alembic3Abc2v18IArchiveC1INS_11AbcCoreHDF52v111ReadAr
chiveEEET_RKSsNS1_12ErrorHandler6PolicyEN5boost10shared_ptrINS_15AbcCoreAbstract
2v120ReadArraySampleCacheEEE[Alembic::Abc::v1::IArchive::IArchive<Alembic::AbcCo
reHDF5::v1::ReadArchive>(Alembic::AbcCoreHDF5::v1::ReadArchive, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, 
Alembic::Abc::v1::ErrorHandler::Policy, 
boost::shared_ptr<Alembic::AbcCoreAbstract::v1::ReadArraySampleCache>)]+0xca): 
undefined reference to 
`Alembic::AbcCoreHDF5::v1::ReadArchive::operator()(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, 
boost::shared_ptr<Alembic::AbcCoreAbstract::v1::ReadArraySampleCache>) const'

What is the expected output? What do you see instead?
I expected the program to link and run, but insted I get a lot of linker errors

What version of the product are you using? On what operating system?
Linux Cent5 64 bit

Please provide any additional information below.

Original issue reported on code.google.com by nova...@gmail.com on 7 Oct 2011 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 18 Jun 2012 at 5:53