Closed htt210 closed 7 years ago
Pls update to v1.5.10.
The is no difference. I tried the github version as well as
sudo apt install libmatio-dev
Do you think this is a problem with the compiler? I am using Ubuntu 16.04 and
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Hm, cannot reproduce. Linking runs for me.
Can you type in the coomand you used to comple the above code
I can compile it now by copying the command used in the Makefile. I missed some directories.
gcc -DHAVE_CONFIG_H -I. -I../src -I../src -I../getopt -g -O2 -c -o testMatio testMatio.cpp
I have installed matio 1.5.2 and found libmatio.a libmatio.la libmatio.so libmatio.so.2 libmatio.so.2.0.2 under /usr/local/lib/ directory. However, I cannot compile any program as the following errors appear:
My program is from the internet and it's as follow:
I compiled it with
g++ -I/usr/include -L/usr/local/lib -lmatio -lz testMatio.c -o testMatio
and with this from the source directory:g++ -I./src/ -L./src/.libs/ -lmatio -lz testMatio.cpp -o testMatio
all give the same error.Can you please help me to fix this? Thank you.