Hi,
I am trying to create a small test software to test the C3D portion of BTK.
I used the up-to-date git repo (SHA-1: d4c03aa9e354be16265d0efe0815c09b35abc642) 13/12/2015
I used cmake (3.6.1) and chose Visual Studio 2013 with only the SHARED_LIBS option enabled.
I compiled everything in release using VS2013. The compilation went well.
Then I created an empty project using VS2013.
I added a .cpp (main) file with the following code:
#include <IO/btkC3DFileIO.h>
#include <IO/btkAcquisitionFileReader.h>
#include <IO/btkAcquisitionFileWriter.h>
#include <Common/btkPoint.h>
int main()
{
return 0;
}
Then, upon compilation, I got the following errors
code\io\btkbinaryfilestream.tpp(67): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadI16' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(76): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadU16' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(85): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadI32' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(94): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadU32' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(103): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadI64' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(112): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadU64' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(121): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadFloat' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(130): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::ReadDouble' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(140): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::Write' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(150): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::Write' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(160): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::Write' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(170): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::Write' : definition of dllimport function not allowed
code\io\btkbinaryfilestream.tpp(180): error C2491: 'btk::ByteOrderBinaryFileStream<Format>::Write' : definition of dllimport function not allowed
I am not sure what I am doing wrong here.
Can someone give me some pointers on where to look at to fix this problem?
Thanks a lot
Alex