Hi,
I am new to fortran. I want to use the FoX library for one of my research project.
I just installed FoX libraries to use wxml as a xml parser with fortran. I compiled FoX with the following command:
$ ./configure FC=gfortran --prefix=/home/user/test
$ make install
it was installed without any problem. however, when I am trying to run the example file wxml_example.f90 after renaming it as wxml_example.f95 with the following command
$ f95 wxml_example.f95 -L/home/user/test/lib -I/home/user/test/finclude
I am getting the following error:
/tmp/cc7Q8ibD.o: In function `MAIN__':
wxml_example.f95:(.text+0x3d): undefined reference to `__m_wxml_core_MOD_xml_openfile'
wxml_example.f95:(.text+0x72): undefined reference to `__m_wxml_core_MOD_xml_adddoctype'
wxml_example.f95:(.text+0xab): undefined reference to `__m_wxml_core_MOD_xml_addparameterentity'
wxml_example.f95:(.text+0xd4): undefined reference to `__m_wxml_core_MOD_xml_addinternalentity'
wxml_example.f95:(.text+0xf9): undefined reference to `__m_wxml_core_MOD_xml_addelementtodtd'
wxml_example.f95:(.text+0x11e): undefined reference to `__m_wxml_core_MOD_xml_addattlisttodtd'
wxml_example.f95:(.text+0x136): undefined reference to `__m_wxml_core_MOD_xml_addpereferencetodtd'
wxml_example.f95:(.text+0x165): undefined reference to `__m_wxml_core_MOD_xml_addxmlpi'
wxml_example.f95:(.text+0x19a): undefined reference to `__m_wxml_core_MOD_xml_addpseudoattribute_ch'
wxml_example.f95:(.text+0x1cf): undefined reference to `__m_wxml_core_MOD_xml_addpseudoattribute_ch'
wxml_example.f95:(.text+0x204): undefined reference to `__m_wxml_core_MOD_xml_addnotation'
wxml_example.f95:(.text+0x225): undefined reference to `__m_wxml_core_MOD_xml_addcomment'
wxml_example.f95:(.text+0x25d): undefined reference to `__m_wxml_core_MOD_xml_addexternalentity'
wxml_example.f95:(.text+0x299): undefined reference to `__m_wxml_core_MOD_xml_addxmlstylesheet'
wxml_example.f95:(.text+0x2ce): undefined reference to `__m_wxml_core_MOD_xml_addxmlpi'
wxml_example.f95:(.text+0x2ea): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x309): undefined reference to `__m_wxml_overloads_MOD_attributescalarint'
wxml_example.f95:(.text+0x33e): undefined reference to `__m_wxml_core_MOD_xml_addattribute_ch'
wxml_example.f95:(.text+0x35a): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x377): undefined reference to `__m_wxml_core_MOD_xml_addcomment'
wxml_example.f95:(.text+0x38f): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x3ae): undefined reference to `__m_wxml_overloads_MOD_attributescalarint'
wxml_example.f95:(.text+0x3db): undefined reference to `__m_wxml_overloads_MOD_attributescalarrealdp'
wxml_example.f95:(.text+0x408): undefined reference to `__m_wxml_overloads_MOD_attributescalarrealdp'
wxml_example.f95:(.text+0x42b): undefined reference to `__m_wxml_core_MOD_xml_addcharacters_ch'
wxml_example.f95:(.text+0x44e): undefined reference to `__m_wxml_core_MOD_xml_addcharacters_ch'
wxml_example.f95:(.text+0x466): undefined reference to `__m_wxml_core_MOD_xml_endelement'
wxml_example.f95:(.text+0x489): undefined reference to `__m_wxml_core_MOD_xml_addcharacters_ch'
wxml_example.f95:(.text+0x4b8): undefined reference to `__m_wxml_core_MOD_xml_addxmlpi'
wxml_example.f95:(.text+0x4ed): undefined reference to `__m_wxml_core_MOD_xml_addpseudoattribute_ch'
wxml_example.f95:(.text+0x509): undefined reference to `__m_wxml_core_MOD_xml_addentityreference'
wxml_example.f95:(.text+0x52c): undefined reference to `__m_wxml_core_MOD_xml_addcharacters_ch'
wxml_example.f95:(.text+0x544): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x579): undefined reference to `__m_wxml_core_MOD_xml_addattribute_ch'
wxml_example.f95:(.text+0x5d6): undefined reference to `__m_wxml_core_MOD_xml_endelement'
wxml_example.f95:(.text+0x5ee): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x623): undefined reference to `__m_wxml_core_MOD_xml_addattribute_ch'
wxml_example.f95:(.text+0x63f): undefined reference to `__m_wxml_core_MOD_xml_addentityreference'
wxml_example.f95:(.text+0x66a): undefined reference to `__m_wxml_core_MOD_xml_declarenamespace'
wxml_example.f95:(.text+0x695): undefined reference to `__m_wxml_core_MOD_xml_declarenamespace'
wxml_example.f95:(.text+0x6ad): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x6c5): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x6dd): undefined reference to `__m_wxml_core_MOD_xml_endelement'
wxml_example.f95:(.text+0x6f5): undefined reference to `__m_wxml_core_MOD_xml_newelement'
wxml_example.f95:(.text+0x720): undefined reference to `__m_wxml_core_MOD_xml_declarenamespace'
wxml_example.f95:(.text+0x755): undefined reference to `__m_wxml_core_MOD_xml_addattribute_ch'
wxml_example.f95:(.text+0x771): undefined reference to `__m_wxml_core_MOD_xml_endelement'
wxml_example.f95:(.text+0x782): undefined reference to `__m_wxml_core_MOD_xml_close'
collect2: error: ld returned 1 exit status
I am using ubuntu 18.04 on a x86_64 machine.
It seems some of the tests were failed. The check.out from make check is attached.
Can anyone please indicate what is the problem? Or at least point out to a link if it is solved?
Thanks in advance,
With regards,
Surajit Nandi
Scuola Normale Superiore di Pisa
Piazza dei Cavalieri 7, Pisa, Italy