Home > Archive > Fortran > September 2004 > Trouble using GQOPT
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Trouble using GQOPT
|
|
|
| Hi,
I am using GQOPT to run some kind of maximum likelihood procedure in
fortran. I am able to compile the program properly but when I try to
Build GQOPT.exe which contains my fortran program file, it gives me an
error saying unresolved external symbol SYMBOL_OPT@40. error executing
link.exe. Does anyone have any idea why its giving me this problem. I
am sure the library files are all ok because when I run another
program that uses the same library function from GQOPT, namely OPT, it
runs perfectly fine.
Any help is much appreciated.
Thanks in advance,
Seema
| |
| Richard E Maine 2004-09-15, 4:00 pm |
| wormpai@hotmail.com (seema) writes:
> error saying unresolved external symbol SYMBOL_OPT@40.
Does anything named symbol_opt appear in your code, intentionally or
unintentionally, in either upper or lower case or a mix?
The @40 is typical "decoration" added to procedure names by some
Windows compilers. If you forgot to declare an array, or if you
mistyped its name, errors like that can occur.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
| |
| Catherine Rees Lay 2004-09-22, 9:09 am |
| In article <87868fc.0409150953.320d46fe@posting.google.com>, seema
<wormpai@hotmail.com> writes
>Hi,
>
>I am using GQOPT to run some kind of maximum likelihood procedure in
>fortran. I am able to compile the program properly but when I try to
>Build GQOPT.exe which contains my fortran program file, it gives me an
>error saying unresolved external symbol SYMBOL_OPT@40. error executing
>link.exe. Does anyone have any idea why its giving me this problem. I
>am sure the library files are all ok because when I run another
>program that uses the same library function from GQOPT, namely OPT, it
>runs perfectly fine.
>
>Any help is much appreciated.
>
>Thanks in advance,
>Seema
It might just be that you haven't linked the library. Assuming you're
using CVF or some other compiler with Developer Studio, go to
Project|Settings and click the Link tab. Compare the libraries in here
with those in the same dialog for the project which works.
HTH,
Catherine.
--
Catherine Rees Lay
To email me, use my first name in front of the "at".
| |
| Dr Ivan D. Reid 2004-09-22, 4:01 pm |
| On 15 Sep 2004 10:53:41 -0700, seema <wormpai@hotmail.com>
wrote in <87868fc.0409150953.320d46fe@posting.google.com>:
> I am using GQOPT to run some kind of maximum likelihood procedure in
> fortran. I am able to compile the program properly but when I try to
> Build GQOPT.exe which contains my fortran program file, it gives me an
> error saying unresolved external symbol SYMBOL_OPT@40. error executing
> link.exe. Does anyone have any idea why its giving me this problem. I
> am sure the library files are all ok because when I run another
> program that uses the same library function from GQOPT, namely OPT, it
> runs perfectly fine.
I believe the decoration @40 refers to the amount of stack the
passed arguments use (or something very similar; it's been a while since
I dealt with such low-level details). It's possible that you have an error
in your argument list and that the real routine is, say, @36 or @44. Check
very carefully the number of arguments in your call, and that they are
all of the proper type.
--
Ivan Reid, Electronic & Computer Engineering, ___ CMS Collaboration,
Brunel University. Ivan.Reid@brunel.ac.uk Room 40-1-B12, CERN
KotPT -- "for stupidity above and beyond the call of duty".
|
|
|
|
|