Hi,
I'm trying to write a small script for testing purpose but i cannot create an EMAN::EMData() object.
The script seems to be able to recognize the "libEM" library but when I try to create an object I'm tackling the following error:
############
/tmp/cci17P4z.o: In function `main':
main.cpp:(.text+0x1c): undefined reference to `EMAN::EMData::EMData()'
collect2: error: ld returned 1 exit status
############
1) my code is the following:
#include "emdata.h"
int main()
{
//EMAN::EMData b() ; // No error is spawned
EMAN::EMData *a = new EMAN::EMData(); // Error
}
2) I run it with the following command:
g++ main.cpp -I/home/EMAN2/eman2/libEM
3) The "emdata.h" is in the folder:
$ls /home/EMAN2/eman2/libEM/emdata.h
/home/EMAN2/eman2/libEM/emdata.h
Is there someone, who can give me some clues to how fix it?
Thanks in advance for any help!
Best,
Luca