Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Undefined reference error in linking time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ivan Costa  
View profile  
 More options Jun 1, 5:44 pm
From: Ivan Costa <ivancvie...@gmail.com>
Date: Mon, 1 Jun 2009 18:44:28 -0300
Local: Mon, Jun 1 2009 5:44 pm
Subject: Undefined reference error in linking time

Could anyone help me with this problem? I have compiled all modules with the
same version of g95 and I got this erro.

Thanks,

Ivan

$ g95 dinverse.o zroots.o dcholsl.o p2chi.o outar.o readhead.o dfft.o
number.o dcholdc.o f2kcli.o taper.o stats.o port.o cdg.o TesteII.o far.o
rnumread.o hea
d.o cdchi.o charead.o numread.o sort.o -o TesteII_f95 -I c:/mingw/lib -I
/c/msys/1.0/home/Anakin/matio-1.3.3/src/
TesteII.o:TesteII.f90:(.text+0x6b6): undefined reference to
`matio_MP_fmat_open'
TesteII.o:TesteII.f90:(.text+0x7c0): undefined reference to
`matio_MP_fmat_close'
TesteII.o:TesteII.f90:(.text+0x52e8): undefined reference to
`matio_MP_fmat_varcreatedouble0'
TesteII.o:TesteII.f90:(.text+0x5309): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0x535a): undefined reference to
`matio_MP_fmat_varwritedoubledata_0'
TesteII.o:TesteII.f90:(.text+0x536f): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0x677f): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0x67b0): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0x680a): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0x6825): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xc214): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xc235): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xc286): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xc29b): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xd37e): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xd39f): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xd3ed): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xd402): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xdde3): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xde04): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xde55): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xde6a): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xeaec): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xeb0d): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xeb5e): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xeb73): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xeb93): undefined reference to
`matio_MP_fmat_varcreatedouble1'
TesteII.o:TesteII.f90:(.text+0xebb4): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xec05): undefined reference to
`matio_MP_fmat_varwritedoubledata_1'
TesteII.o:TesteII.f90:(.text+0xec1a): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xf203): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xf224): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xf275): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xf28a): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xf7f6): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xf817): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xf868): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xf87d): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xfbeb): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xfc0c): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xfc5d): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xfc72): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0xfeb7): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0xfed8): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0xff29): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0xff3e): undefined reference to
`matio_MP_fmat_varfree'
TesteII.o:TesteII.f90:(.text+0x10bb4): undefined reference to
`matio_MP_fmat_varcreatedouble2'
TesteII.o:TesteII.f90:(.text+0x10bd5): undefined reference to
`matio_MP_fmat_varwriteinfo'
TesteII.o:TesteII.f90:(.text+0x10c26): undefined reference to
`matio_MP_fmat_varwritedoubledata_2'
TesteII.o:TesteII.f90:(.text+0x10c3b): undefined reference to
`matio_MP_fmat_varfree'
head.o:head.f90:(.text+0x459): undefined reference to
`matio_MP_fmat_varcreatedouble0'
head.o:head.f90:(.text+0x47a): undefined reference to
`matio_MP_fmat_varwriteinfo'
head.o:head.f90:(.text+0x4b3): undefined reference to
`matio_MP_fmat_varwritedoubledata_0'
head.o:head.f90:(.text+0x4c8): undefined reference to `matio_MP_fmat_varfree

--
[]'s

Ivan da Costa Vieira
ivancvie...@gmail.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John McFarland  
View profile  
 More options Jun 12, 3:37 pm
From: John McFarland <john.mcfarl...@swri.org>
Date: Fri, 12 Jun 2009 12:37:53 -0700 (PDT)
Local: Fri, Jun 12 2009 3:37 pm
Subject: Re: Undefined reference error in linking time

On Jun 1, 4:44 pm, Ivan Costa <ivancvie...@gmail.com> wrote:

> Could anyone help me with this problem? I have compiled all modules with the
> same version of g95 and I got this erro.

> Thanks,

> Ivan

> $ g95 dinverse.o zroots.o dcholsl.o p2chi.o outar.o readhead.o dfft.o
> number.o dcholdc.o f2kcli.o taper.o stats.o port.o cdg.o TesteII.o far.o
> rnumread.o hea
> d.o cdchi.o charead.o numread.o sort.o -o TesteII_f95 -I c:/mingw/lib -I
> /c/msys/1.0/home/Anakin/matio-1.3.3/src/
> TesteII.o:TesteII.f90:(.text+0x6b6): undefined reference to
> `matio_MP_fmat_open'

Hi,

The -I (I as in "include") flag does not do any linking, it just tells
the compiler where to find .mod files.  It looks like you also need to
link the matio library, with something like "-L /c/msys/1.0/home/
Anakin/matio-1.3.3 -l matio"  (where here -l is l as in "library").

John


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google