Test file not compiled

64 views
Skip to first unread message

Victor Lavrent'ev

unread,
Nov 7, 2018, 10:19:12 PM11/7/18
to partio-discuss

Hi partio community, 
Can't compile test file (testio.cpp)

https://github.com/wdas/partio/blob/master/src/tests/testio.cpp

c++ -fpic -std=c++11 testio.cpp -o testio
/tmp/cck5a7Rh.o: In function `makeData()':
testio.cpp:(.text+0x1c): undefined reference to `Partio::create()'
/tmp/cck5a7Rh.o: In function `testEmptySaveLoad(char const*)':
testio.cpp:(.text+0x2fb): undefined reference to `Partio::create()'
testio.cpp:(.text+0x3a7): undefined reference to `Partio::write(char const*, Partio::ParticlesData const&, bool, bool, std::ostream&)'
testio.cpp:(.text+0x3d6): undefined reference to `Partio::read(char const*, bool, std::ostream&)'
/tmp/cck5a7Rh.o: In function `testSaveLoad(Partio::ParticlesData*, char const*)':
testio.cpp:(.text+0x488): undefined reference to `Partio::write(char const*, Partio::ParticlesData const&, bool, bool, std::ostream&)'
testio.cpp:(.text+0x4a0): undefined reference to `Partio::read(char const*, bool, std::ostream&)'
collect2: error: ld returned 1 exit status


Screenshot from 2018-11-07 21-45-28.png

 

Victor Lavrent'ev

unread,
Nov 8, 2018, 1:43:26 PM11/8/18
to partio-discuss
The question is closed.
Linking was not performed.
Now everything works.

четверг, 8 ноября 2018 г., 5:19:12 UTC+2 пользователь Victor Lavrent'ev написал:
Reply all
Reply to author
Forward
0 new messages